chore(release): 0.2.6
[risinglegends.git] / migrations / 20230808185745_armour-icons.ts
1 import { Knex } from "knex";
2
3
4 export async function up(knex: Knex): Promise<void> {
5   return knex.schema.alterTable('shop_equipment', function(table) {
6     table.string('icon').defaultTo('');
7   }).alterTable('inventory', function(table) {
8     table.string('icon').defaultTo('');
9   });
10 }
11
12
13 export async function down(knex: Knex): Promise<void> {
14   return knex.schema.alterTable('shop_equipment', function(table) {
15     table.dropColumn('icon');
16   }).alterTable('inventory', function(table) {
17     table.dropColumn('icon');
18   });
19 }
20