datacap/configure/schema/1.13.0/schema.sql
2024-04-12 22:23:52 +08:00

19 lines
681 B
SQL

USE `datacap`;
ALTER TABLE `source`
ADD COLUMN `version` VARCHAR(255) DEFAULT NULL,
ADD COLUMN `available` BOOLEAN DEFAULT TRUE,
ADD COLUMN `message` TEXT DEFAULT NULL,
ADD COLUMN `update_time` DATETIME DEFAULT NULL;
RENAME TABLE `scheduled_task` TO `datacap_scheduled`;
ALTER TABLE `datacap_scheduled`
ADD COLUMN `type` VARCHAR(255) DEFAULT NULL;
UPDATE `datacap_scheduled`
SET `type` = 'SOURCE_SYNCHRONIZE';
INSERT INTO `datacap_scheduled` (name, description, expression, active, is_system, type)
VALUES ('Check source available', 'Check the availability of the data source every 1 hour', '0 0 * * * ?', 1, 1, 'SOURCE_CHECK');