feat: Add status to step model and adjust executeFlow accordingly

This commit is contained in:
Faruk AYDIN
2022-02-05 19:15:37 +03:00
committed by Ömer Faruk Aydın
parent 572ad71241
commit e155bb528f
5 changed files with 40 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
import { Knex } from 'knex';
export async function up(knex: Knex): Promise<void> {
return knex.schema.table('steps', (table) => {
table.string('status').notNullable().defaultTo('incomplete');
});
}
export async function down(knex: Knex): Promise<void> {
return knex.schema.table('steps', (table) => {
table.dropColumn('status');
});
}