diff --git a/packages/backend/src/db/migrations/20220105151725_remove_constraints_from_steps.js b/packages/backend/src/db/migrations/20220105151725_remove_constraints_from_steps.js index f4812f22..bffa24fc 100644 --- a/packages/backend/src/db/migrations/20220105151725_remove_constraints_from_steps.js +++ b/packages/backend/src/db/migrations/20220105151725_remove_constraints_from_steps.js @@ -5,9 +5,11 @@ export async function up(knex) { }); } -export async function down(knex) { - return knex.schema.alterTable('steps', (table) => { - table.string('key').notNullable().alter(); - table.string('app_key').notNullable().alter(); - }); +export async function down() { + // We can't use down migration here since there are null values which needs to be set! + // We don't want to set those values by default key and app key since it will mislead users. + // return knex.schema.alterTable('steps', (table) => { + // table.string('key').notNullable().alter(); + // table.string('app_key').notNullable().alter(); + // }); }