Skip to content

Commit

Permalink
update 补充etf前缀及错误权息数据清除
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Sep 10, 2024
1 parent 491d176 commit 4961f24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hikyuu/data/mysql_upgrade/0022.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DELETE FROM `hku_base`.`stkWeight`;
UPDATE `hku_base`.`coderuletype` SET `codepre`=51 WHERE `codepre`=510 AND `marketid`=1;
UPDATE `hku_base`.`coderuletype` SET `codepre`=50 WHERE `codepre`=500 AND `marketid`=1;
UPDATE `hku_base`.`coderuletype` SET `codepre`=20 WHERE `codepre`=200 AND `marketid`=2;
UPDATE `hku_base`.`version` set `version` = 22;
7 changes: 7 additions & 0 deletions hikyuu/data/sqlite_upgrade/0023.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BEGIN TRANSACTION;
DELETE FROM `stkWeight`;
UPDATE `coderuletype` SET `codepre`=51 WHERE `codepre`=510 AND `marketid`=1;
UPDATE `coderuletype` SET `codepre`=50 WHERE `codepre`=500 AND `marketid`=1;
UPDATE `coderuletype` SET `codepre`=20 WHERE `codepre`=200 AND `marketid`=2;
UPDATE `version` set `version` = 23;
COMMIT;

0 comments on commit 4961f24

Please sign in to comment.