change column WIP

This commit is contained in:
Jan Prochazka 2021-09-09 08:11:17 +02:00
parent f572c05a32
commit 3776c00377
6 changed files with 10 additions and 5 deletions

View File

@ -116,11 +116,11 @@ const engines = [
const filterLocal = [
// filter local testing
'MySQL',
'PostgreSQL',
'-MySQL',
'-PostgreSQL',
'SQL Server',
'SQLite',
'CockroachDB',
'-SQLite',
'-CockroachDB',
];
module.exports = process.env.CITEST

View File

@ -233,7 +233,8 @@ export class AlterPlan {
this._testTableRecreate(op, 'createColumn', this.dialect.createColumn, 'newObject') ||
this._testTableRecreate(op, 'dropColumn', this.dialect.dropColumn, 'oldObject') ||
this._testTableRecreate(op, 'createConstraint', obj => this._canCreateConstraint(obj), 'newObject') ||
this._testTableRecreate(op, 'dropConstraint', obj => this._canDropConstraint(obj), 'oldObject') || [op]
this._testTableRecreate(op, 'dropConstraint', obj => this._canDropConstraint(obj), 'oldObject') ||
this._testTableRecreate(op, 'changeColumn', this.dialect.changeColumn, 'newObject') || [op]
);
});

View File

@ -19,6 +19,7 @@ export interface SqlDialect {
createColumn?: boolean;
dropColumn?: boolean;
changeColumn?: boolean;
createIndex?: boolean;
dropIndex?: boolean;
createForeignKey?: boolean;

View File

@ -22,6 +22,7 @@ const dialect = {
createColumn: true,
dropColumn: true,
changeColumn: true,
createIndex: true,
dropIndex: true,
createForeignKey: true,

View File

@ -16,6 +16,7 @@ const dialect = {
createColumn: true,
dropColumn: true,
changeColumn: true,
createIndex: true,
dropIndex: true,
createForeignKey: true,

View File

@ -19,6 +19,7 @@ const dialect = {
createColumn: true,
dropColumn: true,
changeColumn: true,
createIndex: true,
dropIndex: true,
createForeignKey: true,