From 3816dfa9c1c69ea7d666fc4179f6c5e5e2843558 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 3 Nov 2020 17:35:58 +0800 Subject: [PATCH] add order id to trades table --- migrations/20201103173342_trades_add_order_id.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 migrations/20201103173342_trades_add_order_id.sql diff --git a/migrations/20201103173342_trades_add_order_id.sql b/migrations/20201103173342_trades_add_order_id.sql new file mode 100644 index 000000000..d803bf017 --- /dev/null +++ b/migrations/20201103173342_trades_add_order_id.sql @@ -0,0 +1,5 @@ +-- +goose Up +ALTER TABLE `trades` ADD COLUMN `order_id` BIGINT UNSIGNED; + +-- +goose Down +ALTER TABLE `trades` DROP COLUMN `order_id`;