unique constraint editor

This commit is contained in:
Jan Prochazka
2021-09-12 20:39:59 +02:00
parent 3760217ff0
commit af75858ce8
3 changed files with 68 additions and 2 deletions

View File

@@ -190,7 +190,7 @@ export class SqlDumper implements AlterProcessor {
if (includeNullable) {
this.put(column.notNull ? '^not ^null' : '^null');
}
if (includeDefault && column.defaultValue != null) {
if (includeDefault && column.defaultValue?.trim()) {
this.columnDefault(column);
}
}