From d7268ba1aef6cad2071ea27174ee256a16e38e54 Mon Sep 17 00:00:00 2001 From: xangelo Date: Wed, 6 Sep 2023 13:31:04 -0400 Subject: [PATCH] fix: add missing migration --- migrations/20230906155222_monster-variants.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 migrations/20230906155222_monster-variants.ts diff --git a/migrations/20230906155222_monster-variants.ts b/migrations/20230906155222_monster-variants.ts new file mode 100644 index 0000000..7e863f9 --- /dev/null +++ b/migrations/20230906155222_monster-variants.ts @@ -0,0 +1,16 @@ +import { Knex } from "knex"; + + +export async function up(knex: Knex): Promise { + return knex.schema.alterTable('fight', function(table) { + table.string('variant').defaultTo(null); + }); +} + + +export async function down(knex: Knex): Promise { + return knex.schema.alterTable('fight', function(table) { + table.dropColumn('variant'); + }); +} + -- 2.25.1