hikyuu2/hikyuu/data/sqlite_upgrade/0004.sql

12 lines
475 B
MySQL
Raw Permalink Normal View History

2020-10-30 00:03:43 +08:00
BEGIN TRANSACTION;
ALTER TABLE `Market` ADD `openTime1` INTEGER;
ALTER TABLE `Market` ADD `closeTime1` INTEGER;
ALTER TABLE `Market` ADD `openTime2` INTEGER;
ALTER TABLE `Market` ADD `closeTime2` INTEGER;
UPDATE `Market` SET `openTime1`=930, `closeTime1`=1130, `openTime2`=1300, `closeTime2`=1500 WHERE `marketid`=1;
UPDATE `Market` SET `openTime1`=930, `closeTime1`=1130, `openTime2`=1300, `closeTime2`=1500 WHERE `marketid`=2;
UPDATE `version` set `version` = 4;
COMMIT;