hikyuu2/hikyuu/data/sqlite_upgrade/0017.sql
2024-04-22 22:32:51 +08:00

16 lines
378 B
SQL

BEGIN TRANSACTION;
CREATE TABLE
IF NOT EXISTS `BlockIndex` (
"id" INTEGER,
`category` VARCHAR(100) NOT NULL,
`name` VARCHAR(100) NOT NULL,
`market_code` VARCHAR(30) NOT NULL,
PRIMARY KEY("id" AUTOINCREMENT)
);
CREATE INDEX "ix_blockindex_category_name" ON "block" (category, name);
UPDATE `version` set `version` = 17;
COMMIT;