alter processor fixes

This commit is contained in:
Jan Prochazka
2021-09-04 21:06:42 +02:00
parent 04a6540890
commit e2ce349a30
7 changed files with 63 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ class Dumper extends SqlDumper {
dropTable(obj, options = {}) {
this.put('^drop ^table');
if (options.testIfExists) this.put(' ^if ^exists');
this.put(' %f', obj.FullName);
this.put(' %f', obj);
this.endCommand();
}

View File

@@ -57,6 +57,7 @@ const cockroachDriver = {
...dialect,
materializedViews: true,
dropColumnDependencies: ['primaryKey'],
dropPrimaryKey: false,
},
};