cockroach fk analyse fix

This commit is contained in:
Jan Prochazka
2021-09-04 21:54:12 +02:00
parent e2ce349a30
commit f4c39bbf3c
6 changed files with 34 additions and 4 deletions

View File

@@ -429,7 +429,6 @@ export class SqlDumper implements AlterProcessor {
}
createIndex(ix: IndexInfo) {
this.put('^create');
if (ix.indexType) this.put(' %k', ix.indexType);
if (ix.isUnique) this.put(' ^unique');
this.put(' ^index %i &n^on %f (&>&n', ix.constraintName, ix);
this.putCollection(',&n', ix.columns, col => {