recreate table WIP

This commit is contained in:
Jan Prochazka
2021-08-26 16:29:28 +02:00
parent dfe37496f2
commit 3bbe06a55b
10 changed files with 222 additions and 12 deletions

View File

@@ -35,6 +35,15 @@ const postgresDriver = {
dialect: {
...dialect,
materializedViews: true,
createColumn: true,
dropColumn: true,
createIndex: true,
dropIndex: true,
createForeignKey: true,
dropForeignKey: true,
createPrimaryKey: true,
dropPrimaryKey: true,
},
};
@@ -47,6 +56,7 @@ const cockroachDriver = {
dialect: {
...dialect,
materializedViews: true,
dropColumnDependencies: ['primaryKey'],
},
};