feat: Introduce position to step model

This commit is contained in:
Faruk AYDIN
2022-01-27 17:32:32 +03:00
committed by Ömer Faruk Aydın
parent c09a535653
commit 4985fb422e
4 changed files with 47 additions and 24 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.integer('position').notNullable();
});
}
export async function down(knex: Knex): Promise<void> {
return knex.schema.table('steps', (table) => {
table.dropColumn('position');
});
}