From 075b51fd18f2788df3fef02a19189e3078d586bc Mon Sep 17 00:00:00 2001 From: Dmitrii Kustov Date: Thu, 26 Dec 2024 11:39:06 +0200 Subject: [PATCH] Removed database name --- src/installer/1.1.8.sql | 2 +- src/installer/2.0.0.sql | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/installer/1.1.8.sql b/src/installer/1.1.8.sql index cb985ff..2f5b730 100644 --- a/src/installer/1.1.8.sql +++ b/src/installer/1.1.8.sql @@ -1,4 +1,4 @@ -ALTER TABLE `simbiatr_simbiat`.`cron__schedule` +ALTER TABLE `cron__schedule` ADD INDEX `arguments` (`arguments`) USING BTREE; ALTER TABLE `cron__errors` diff --git a/src/installer/2.0.0.sql b/src/installer/2.0.0.sql index 3ea890f..f8ee217 100644 --- a/src/installer/2.0.0.sql +++ b/src/installer/2.0.0.sql @@ -7,7 +7,7 @@ ALTER TABLE `cron__schedule` ALTER TABLE `cron__schedule` ADD `instance` INT(10) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Instance number of the task' AFTER `arguments`; -ALTER TABLE `simbiatr_simbiat`.`cron__schedule` +ALTER TABLE `cron__schedule` DROP PRIMARY KEY, ADD PRIMARY KEY (`task`, `arguments`, `instance`) USING BTREE; @@ -38,7 +38,7 @@ ALTER TABLE `cron__log` ALTER TABLE `cron__log` CHANGE `arguments` `arguments` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'Optional task arguments'; -ALTER TABLE `simbiatr_simbiat`.`cron__log` +ALTER TABLE `cron__log` DROP FOREIGN KEY errors_to_arguments; ALTER TABLE `cron__log` @@ -101,14 +101,14 @@ SET `setting` = 'logLife', `description` = 'Days to keep messages in log. Older records will be removed on next CRON process.' WHERE `cron__settings`.`setting` = 'errorLife'; -ALTER TABLE `simbiatr_simbiat`.`cron__log` +ALTER TABLE `cron__log` ADD INDEX `time_desc` (`time` DESC) USING BTREE; -ALTER TABLE `simbiatr_simbiat`.`cron__log` +ALTER TABLE `cron__log` ADD INDEX `type` (`type`) USING BTREE; -ALTER TABLE `simbiatr_simbiat`.`cron__log` +ALTER TABLE `cron__log` ADD INDEX `runby` (`runby`) USING BTREE; -ALTER TABLE `simbiatr_simbiat`.`cron__log` +ALTER TABLE `cron__log` ADD INDEX `task` (`task`) USING BTREE; \ No newline at end of file