From 48d20f296426b7d4a3bc331ff1131ea278a2be93 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Wed, 15 Jan 2025 03:12:17 +0000 Subject: [PATCH] * [misc] modify sql style. --- db/update22.0.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/update22.0.sql b/db/update22.0.sql index 0dbeabf736..fa832d48d0 100644 --- a/db/update22.0.sql +++ b/db/update22.0.sql @@ -13,7 +13,7 @@ CREATE TABLE `zt_rule` ( `lastEditedDate` date DEFAULT NULL, `lastRunTime` datetime DEFAULT NULL, `lastRunResult` varchar(30) NOT NULL, - PRIMARY KEY (`id`), - KEY `objectType` (`objectType`), - KEY `action` (`action`) + PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE INDEX `objectType` ON `zt_rule` (`objectType`); +CREATE INDEX `action` ON `zt_rule` (`action`);