mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
migrations: add migration sql files for adding new net_profit column
This commit is contained in:
parent
9d0898ecc6
commit
ee2b0842f5
15
migrations/mysql/20241115165059_add_net_profit_column.sql
Normal file
15
migrations/mysql/20241115165059_add_net_profit_column.sql
Normal file
|
@ -0,0 +1,15 @@
|
|||
-- +up
|
||||
-- +begin
|
||||
ALTER TABLE `positions`
|
||||
ADD COLUMN `net_profit` DECIMAL(16, 8) DEFAULT 0.00000000 NOT NULL
|
||||
;
|
||||
-- +end
|
||||
|
||||
|
||||
-- +down
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `positions`
|
||||
DROP COLUMN `net_profit`
|
||||
;
|
||||
-- +end
|
15
migrations/sqlite3/20241115165059_add_net_profit_column.sql
Normal file
15
migrations/sqlite3/20241115165059_add_net_profit_column.sql
Normal file
|
@ -0,0 +1,15 @@
|
|||
-- +up
|
||||
-- +begin
|
||||
ALTER TABLE `positions`
|
||||
ADD COLUMN `net_profit` DECIMAL DEFAULT 0.00000000 NOT NULL
|
||||
;
|
||||
-- +end
|
||||
|
||||
|
||||
-- +down
|
||||
|
||||
-- +begin
|
||||
ALTER TABLE `positions`
|
||||
DROP COLUMN `net_profit`
|
||||
;
|
||||
-- +end
|
Loading…
Reference in New Issue
Block a user