diff --git a/migrations/mysql/20241115165059_add_net_profit_column.sql b/migrations/mysql/20241115165059_add_net_profit_column.sql new file mode 100644 index 000000000..73bdfcf50 --- /dev/null +++ b/migrations/mysql/20241115165059_add_net_profit_column.sql @@ -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 diff --git a/migrations/sqlite3/20241115165059_add_net_profit_column.sql b/migrations/sqlite3/20241115165059_add_net_profit_column.sql new file mode 100644 index 000000000..70595bb99 --- /dev/null +++ b/migrations/sqlite3/20241115165059_add_net_profit_column.sql @@ -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