From 4961f2484ebb1d14571c689a91396b0bd832a9a8 Mon Sep 17 00:00:00 2001 From: fasiondog Date: Tue, 10 Sep 2024 16:18:48 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=A1=A5=E5=85=85etf=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E5=8F=8A=E9=94=99=E8=AF=AF=E6=9D=83=E6=81=AF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=B8=85=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hikyuu/data/mysql_upgrade/0022.sql | 5 +++++ hikyuu/data/sqlite_upgrade/0023.sql | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 hikyuu/data/mysql_upgrade/0022.sql create mode 100644 hikyuu/data/sqlite_upgrade/0023.sql diff --git a/hikyuu/data/mysql_upgrade/0022.sql b/hikyuu/data/mysql_upgrade/0022.sql new file mode 100644 index 000000000..ad72217d6 --- /dev/null +++ b/hikyuu/data/mysql_upgrade/0022.sql @@ -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; \ No newline at end of file diff --git a/hikyuu/data/sqlite_upgrade/0023.sql b/hikyuu/data/sqlite_upgrade/0023.sql new file mode 100644 index 000000000..e4ede4234 --- /dev/null +++ b/hikyuu/data/sqlite_upgrade/0023.sql @@ -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; \ No newline at end of file