From: xangelo Date: Wed, 6 Sep 2023 17:31:04 +0000 (-0400) Subject: fix: add missing migration X-Git-Tag: v0.3.4~1 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=d7268ba1aef6cad2071ea27174ee256a16e38e54;p=risinglegends.git fix: add missing migration --- 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'); + }); +} +