mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +00:00
add the migration sql
This commit is contained in:
parent
46015324e9
commit
82bdfa7db8
21
migrations/mysql/20220419121046_fix_fee_column.sql
Normal file
21
migrations/mysql/20220419121046_fix_fee_column.sql
Normal file
|
@ -0,0 +1,21 @@
|
|||
-- +up
|
||||
-- +begin
|
||||
ALTER TABLE trades
|
||||
CHANGE fee fee DECIMAL(16, 8) NOT NULL;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE profits
|
||||
CHANGE fee fee DECIMAL(16, 8) NOT NULL;
|
||||
-- +end
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE profits
|
||||
CHANGE fee_in_usd fee_in_usd DECIMAL(16, 8);
|
||||
-- +end
|
||||
|
||||
-- +down
|
||||
|
||||
-- +begin
|
||||
SELECT 1;
|
||||
-- +end
|
10
migrations/sqlite3/20220419121046_fix_fee_column.sql
Normal file
10
migrations/sqlite3/20220419121046_fix_fee_column.sql
Normal file
|
@ -0,0 +1,10 @@
|
|||
-- +up
|
||||
-- +begin
|
||||
SELECT 1;
|
||||
-- +end
|
||||
|
||||
-- +down
|
||||
|
||||
-- +begin
|
||||
SELECT 1;
|
||||
-- +end
|
Loading…
Reference in New Issue
Block a user