Home
/
risinglegends.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5480e91
)
fix: add missing migration
author
xangelo
<me@xangelo.ca>
Wed, 6 Sep 2023 17:31:04 +0000
(13:31 -0400)
committer
xangelo
<me@xangelo.ca>
Wed, 6 Sep 2023 17:31:04 +0000
(13:31 -0400)
migrations/20230906155222_monster-variants.ts
[new file with mode: 0644]
patch
|
blob
diff --git a/migrations/20230906155222_monster-variants.ts
b/migrations/20230906155222_monster-variants.ts
new file mode 100644
(file)
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<void> {
+ return knex.schema.alterTable('fight', function(table) {
+ table.string('variant').defaultTo(null);
+ });
+}
+
+
+export async function down(knex: Knex): Promise<void> {
+ return knex.schema.alterTable('fight', function(table) {
+ table.dropColumn('variant');
+ });
+}
+