drop unique column works

This commit is contained in:
Jan Prochazka
2021-09-05 10:55:53 +02:00
parent 2cb3a6b446
commit 0ef5ac04d8
9 changed files with 62 additions and 10 deletions

View File

@@ -9,7 +9,9 @@ const { getAlterTableScript, extendDatabaseInfo, generateDbPairingId } = require
function pickImportantTableInfo(table) {
return {
pureName: table.pureName,
columns: table.columns.map(fp.pick(['columnName', 'notNull', 'autoIncrement'])),
columns: table.columns
.filter(x => x.columnName != 'rowid')
.map(fp.pick(['columnName', 'notNull', 'autoIncrement'])),
};
}
@@ -56,9 +58,9 @@ async function testTableDiff(conn, driver, mangle) {
}
// const TESTED_COLUMNS = ['col_pk', 'col_std', 'col_def', 'col_fk', 'col_ref', 'col_idx', 'col_uq'];
const TESTED_COLUMNS = ['col_pk'];
// const TESTED_COLUMNS = ['col_pk'];
// const TESTED_COLUMNS = ['col_idx'];
// const TESTED_COLUMNS = ['col_fk'];
const TESTED_COLUMNS = ['col_uq'];
// const TESTED_COLUMNS = ['col_std'];
function engines_columns_source() {

View File

@@ -16,7 +16,7 @@ const matviews = {
const engines = [
{
label: 'MySQL',
// skipLocal: true,
skipLocal: true,
connection: {
engine: 'mysql@dbgate-plugin-mysql',
password: 'Pwd2020Db',
@@ -34,7 +34,7 @@ const engines = [
},
{
label: 'PostgreSQL',
// skipLocal: true,
skipLocal: true,
connection: {
engine: 'postgres@dbgate-plugin-postgres',
password: 'Pwd2020Db',
@@ -103,7 +103,7 @@ const engines = [
},
{
label: 'CockroachDB',
// skipLocal: true,
skipLocal: true,
connection: {
engine: 'cockroach@dbgate-plugin-postgres',
user: 'root',