migrations: add migration sql files for adding new net_profit column

This commit is contained in:
c9s 2024-11-15 16:53:47 +08:00
parent 9d0898ecc6
commit ee2b0842f5
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 30 additions and 0 deletions

View 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

View 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