Skip to content

Commit abea2ad

Browse files
committed
feat(database): 补充创业板302段
1 parent 9f6c613 commit abea2ad

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

hikyuu/data/mysql_upgrade/0027.sql

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
INSERT INTO `hku_base`.`coderuletype` (`marketid`, `codepre`, `type`, `description`)
2+
SELECT 2, '302', 8, '创业板'
3+
WHERE NOT EXISTS (
4+
SELECT id FROM `hku_base`.`coderuletype` WHERE `codepre`=302
5+
);
6+
UPDATE `hku_base`.`version` set `version` = 27;

hikyuu/data/sqlite_upgrade/0027.sql

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BEGIN TRANSACTION;
2+
INSERT INTO `CodeRuleType` (`marketid`, `codepre`, `type`, `description`)
3+
SELECT 2, '302', 8, '创业板'
4+
WHERE NOT EXISTS (
5+
SELECT id FROM `CodeRuleType` WHERE `codepre`=302
6+
);
7+
UPDATE `version` set `version` = 27;
8+
COMMIT;

0 commit comments

Comments
 (0)