goploy/database/1.8.0.sql
2023-05-12 10:11:38 +08:00

8 lines
454 B
SQL

ALTER TABLE `project`
CHANGE COLUMN `rsync_option` `transfer_option` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' AFTER `branch`,
ADD COLUMN `transfer_type` varchar(255) NOT NULL DEFAULT '' AFTER `branch`;
UPDATE `project` SET `transfer_type` = 'rsync';
ALTER TABLE `server`
ADD COLUMN `os` varchar(255) NOT NULL DEFAULT '' COMMENT 'linux|windows' AFTER `description`;
UPDATE `server` SET `os` = 'linux';