feat: Add published_at column to flows and adjust update flow status

This commit is contained in:
Faruk AYDIN
2022-08-17 20:44:16 +03:00
committed by Ali BARIN
parent c4a3f19bba
commit 5fb988ae2d
3 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
import { Knex } from 'knex';
export async function up(knex: Knex): Promise<void> {
return knex.schema.table('flows', (table) => {
table.timestamp('published_at').nullable();
});
}
export async function down(knex: Knex): Promise<void> {
return knex.schema.table('flows', (table) => {
table.dropColumn('published_at');
});
}