mirror of
https://gitee.com/devlive-community/datacap.git
synced 2024-12-03 04:27:56 +08:00
19 lines
681 B
SQL
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');
|