chore(release): 0.2.5
[risinglegends.git] / migrations / 20230802174902_items-in-shop.ts
1 import { Knex } from "knex";
2
3
4 export async function up(knex: Knex): Promise<void> {
5   return knex.schema.createTable('shop_items', function(table) {
6     table.integer('item_id');
7     table.integer('location_id');
8     table.integer('amount');
9     table.integer('price_per_unit');
10     table.primary(['item_id', 'location_id']);
11   });
12 }
13
14
15 export async function down(knex: Knex): Promise<void> {
16   return knex.schema.dropTable('shop_items');
17 }
18