mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +00:00
change column WIP
This commit is contained in:
@@ -116,11 +116,11 @@ const engines = [
|
|||||||
|
|
||||||
const filterLocal = [
|
const filterLocal = [
|
||||||
// filter local testing
|
// filter local testing
|
||||||
'MySQL',
|
'-MySQL',
|
||||||
'PostgreSQL',
|
'-PostgreSQL',
|
||||||
'SQL Server',
|
'SQL Server',
|
||||||
'SQLite',
|
'-SQLite',
|
||||||
'CockroachDB',
|
'-CockroachDB',
|
||||||
];
|
];
|
||||||
|
|
||||||
module.exports = process.env.CITEST
|
module.exports = process.env.CITEST
|
||||||
|
|||||||
@@ -233,7 +233,8 @@ export class AlterPlan {
|
|||||||
this._testTableRecreate(op, 'createColumn', this.dialect.createColumn, 'newObject') ||
|
this._testTableRecreate(op, 'createColumn', this.dialect.createColumn, 'newObject') ||
|
||||||
this._testTableRecreate(op, 'dropColumn', this.dialect.dropColumn, 'oldObject') ||
|
this._testTableRecreate(op, 'dropColumn', this.dialect.dropColumn, 'oldObject') ||
|
||||||
this._testTableRecreate(op, 'createConstraint', obj => this._canCreateConstraint(obj), 'newObject') ||
|
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]
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
1
packages/types/dialect.d.ts
vendored
1
packages/types/dialect.d.ts
vendored
@@ -19,6 +19,7 @@ export interface SqlDialect {
|
|||||||
|
|
||||||
createColumn?: boolean;
|
createColumn?: boolean;
|
||||||
dropColumn?: boolean;
|
dropColumn?: boolean;
|
||||||
|
changeColumn?: boolean;
|
||||||
createIndex?: boolean;
|
createIndex?: boolean;
|
||||||
dropIndex?: boolean;
|
dropIndex?: boolean;
|
||||||
createForeignKey?: boolean;
|
createForeignKey?: boolean;
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ const dialect = {
|
|||||||
|
|
||||||
createColumn: true,
|
createColumn: true,
|
||||||
dropColumn: true,
|
dropColumn: true,
|
||||||
|
changeColumn: true,
|
||||||
createIndex: true,
|
createIndex: true,
|
||||||
dropIndex: true,
|
dropIndex: true,
|
||||||
createForeignKey: true,
|
createForeignKey: true,
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ const dialect = {
|
|||||||
|
|
||||||
createColumn: true,
|
createColumn: true,
|
||||||
dropColumn: true,
|
dropColumn: true,
|
||||||
|
changeColumn: true,
|
||||||
createIndex: true,
|
createIndex: true,
|
||||||
dropIndex: true,
|
dropIndex: true,
|
||||||
createForeignKey: true,
|
createForeignKey: true,
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ const dialect = {
|
|||||||
|
|
||||||
createColumn: true,
|
createColumn: true,
|
||||||
dropColumn: true,
|
dropColumn: true,
|
||||||
|
changeColumn: true,
|
||||||
createIndex: true,
|
createIndex: true,
|
||||||
dropIndex: true,
|
dropIndex: true,
|
||||||
createForeignKey: true,
|
createForeignKey: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user