Merge pull request #1969 from automatisch/fix-migrations-rollback

fix: Remove step constraint down migration
This commit is contained in:
Ali BARIN
2024-07-16 16:04:07 +02:00
committed by GitHub

View File

@@ -5,9 +5,11 @@ export async function up(knex) {
}); });
} }
export async function down(knex) { export async function down() {
return knex.schema.alterTable('steps', (table) => { // We can't use down migration here since there are null values which needs to be set!
table.string('key').notNullable().alter(); // We don't want to set those values by default key and app key since it will mislead users.
table.string('app_key').notNullable().alter(); // return knex.schema.alterTable('steps', (table) => {
}); // table.string('key').notNullable().alter();
// table.string('app_key').notNullable().alter();
// });
} }