From 31b4b179c5336b5c9221e53b1c291e6c46d4120d Mon Sep 17 00:00:00 2001 From: fasiondog Date: Mon, 31 Jan 2022 16:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A02022=E5=B9=B4=E5=81=87?= =?UTF-8?q?=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hikyuu/data/mysql_upgrade/0007.sql | 21 +++++++++++++++++++++ hikyuu/data/sqlite_upgrade/0008.sql | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 hikyuu/data/mysql_upgrade/0007.sql create mode 100644 hikyuu/data/sqlite_upgrade/0008.sql diff --git a/hikyuu/data/mysql_upgrade/0007.sql b/hikyuu/data/mysql_upgrade/0007.sql new file mode 100644 index 000000000..576c92719 --- /dev/null +++ b/hikyuu/data/mysql_upgrade/0007.sql @@ -0,0 +1,21 @@ +INSERT INTO `hku_base`.`CodeRuleType` (`id`,`marketid`,`codepre`,`type`,`description`) VALUES (34,2,'301',8,'创业板'); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220103); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220131); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220201); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220202); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220203); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220204); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220205); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220404); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220405); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220502); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220503); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220504); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220603); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20220912); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20221003); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20221004); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20221005); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20221006); +INSERT INTO `hku_base`."Holiday" (`date`) VALUES (20221007); +UPDATE `hku_base`.`version` set `version` = 7; \ No newline at end of file diff --git a/hikyuu/data/sqlite_upgrade/0008.sql b/hikyuu/data/sqlite_upgrade/0008.sql new file mode 100644 index 000000000..12c9e374b --- /dev/null +++ b/hikyuu/data/sqlite_upgrade/0008.sql @@ -0,0 +1,22 @@ +BEGIN TRANSACTION; +INSERT INTO "Holiday" (`date`) VALUES (20220103); +INSERT INTO "Holiday" (`date`) VALUES (20220131); +INSERT INTO "Holiday" (`date`) VALUES (20220201); +INSERT INTO "Holiday" (`date`) VALUES (20220202); +INSERT INTO "Holiday" (`date`) VALUES (20220203); +INSERT INTO "Holiday" (`date`) VALUES (20220204); +INSERT INTO "Holiday" (`date`) VALUES (20220205); +INSERT INTO "Holiday" (`date`) VALUES (20220404); +INSERT INTO "Holiday" (`date`) VALUES (20220405); +INSERT INTO "Holiday" (`date`) VALUES (20220502); +INSERT INTO "Holiday" (`date`) VALUES (20220503); +INSERT INTO "Holiday" (`date`) VALUES (20220504); +INSERT INTO "Holiday" (`date`) VALUES (20220603); +INSERT INTO "Holiday" (`date`) VALUES (20220912); +INSERT INTO "Holiday" (`date`) VALUES (20221003); +INSERT INTO "Holiday" (`date`) VALUES (20221004); +INSERT INTO "Holiday" (`date`) VALUES (20221005); +INSERT INTO "Holiday" (`date`) VALUES (20221006); +INSERT INTO "Holiday" (`date`) VALUES (20221007); +UPDATE `version` set `version` = 8; +COMMIT; \ No newline at end of file