chore(release): 0.2.5
[risinglegends.git] / migrations / 20230802173517_shop_equipment.ts
1 import { Knex } from "knex";
2
3
4 export async function up(knex: Knex): Promise<void> {
5   return knex.schema.alterTable('shop_items', function(table) {
6     table.dropPrimary();
7     table.primary(['id'], 'shop_equipment_pkey');
8   }).renameTable('shop_items', 'shop_equipment');
9 }
10
11
12 export async function down(knex: Knex): Promise<void> {
13   return knex.schema.renameTable('shop_equipment', 'shop_items');
14 }
15