chore: Add active column to flows

This commit is contained in:
Faruk AYDIN
2022-01-08 17:15:39 +03:00
committed by Ömer Faruk Aydın
parent 430f0d07e8
commit 02cfb979bc
3 changed files with 18 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.boolean('active').defaultTo(false)
});
}
export async function down(knex: Knex): Promise<void> {
return knex.schema.table('flows', (table) => {
table.dropColumn('active');
});
}