feat: Create empty trigger step when the flow is created

This commit is contained in:
Faruk AYDIN
2022-01-05 23:24:31 +03:00
committed by Ömer Faruk Aydın
parent 247b25cfc4
commit c07b377de1
6 changed files with 31 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
import { Knex } from "knex";
export async function up(knex: Knex): Promise<void> {
return knex.schema.alterTable('steps', table => {
table.string('key').nullable().alter();
table.string('app_key').nullable().alter();
})
}
export async function down(knex: Knex): Promise<void> {
return knex.schema.alterTable('steps', table => {
table.string('key').notNullable().alter();
table.string('app_key').notNullable().alter();
})
}