This commit is contained in:
cutemeli
2025-12-22 10:35:30 +00:00
parent 0bfc6c8425
commit 5ce7ca2c5d
38927 changed files with 0 additions and 4594700 deletions

View File

@@ -1,6 +0,0 @@
-- Copyright 1999-2023. Plesk International GmbH. All rights reserved.
CREATE TABLE IF NOT EXISTS `version` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`dbVersion` TEXT NOT NULL
);
INSERT INTO `version` (`dbVersion`) VALUES ('200000000000');

View File

@@ -1,35 +0,0 @@
-- Copyright 1999-2023. Plesk International GmbH. All rights reserved.
CREATE TEMPORARY TABLE `Repositories_tmp` (
`id`, `domainId`, `name`, `type`, `autoDeploy`,
`branch`, `deploymentPath`, `fetchUrl`, `uuid`, `skipSslVerification`, `postDeploymentActions`
);
INSERT INTO `Repositories_tmp` SELECT
`id`, `domainId`, `name`, `type`, `autoDeploy`,
`branch`, `deploymentPath`, `fetchUrl`, `uuid`, `skipSslVerification`, `postDeploymentActions`
FROM `Repositories`;
DROP TABLE `Repositories`;
CREATE TABLE `Repositories` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`domainId` int(10) NOT NULL,
`name` varchar(255) NOT NULL,
`type` varchar(20) NOT NULL DEFAULT 'none',
`deploymentMode` varchar(20) NOT NULL DEFAULT 'none',
`branch` varchar(255) DEFAULT NULL,
`deploymentPath` varchar(255) DEFAULT NULL,
`fetchUrl` varchar(255) DEFAULT NULL,
`uuid` varchar(36) NOT NULL,
`skipSslVerification` int(1) NOT NULL DEFAULT '0',
`postDeploymentActions` TEXT DEFAULT NULL
);
INSERT INTO `Repositories`
(
`id`, `domainId`, `name`, `type`,
`deploymentMode`,
`branch`, `deploymentPath`, `fetchUrl`, `uuid`, `skipSslVerification`, `postDeploymentActions`
)
SELECT
`id`, `domainId`, `name`, `type`,
case when `autoDeploy` = 1 then 'auto' else 'manual' end as `deploymentMode`,
`branch`, `deploymentPath`, `fetchUrl`, `uuid`, `skipSslVerification`, `postDeploymentActions`
FROM `Repositories_tmp`;
DROP TABLE `Repositories_tmp`;

View File

@@ -1,4 +0,0 @@
-- Copyright 1999-2023. Plesk International GmbH. All rights reserved.
ALTER TABLE `Repositories` ADD `httpUser` varchar(255) DEFAULT NULL;
ALTER TABLE `Repositories` ADD `httpPassword` varchar(255) DEFAULT NULL;

View File

@@ -1,3 +0,0 @@
-- Copyright 1999-2023. Plesk International GmbH. All rights reserved.
ALTER TABLE `Repositories` ADD `deploymentsCounter` integer DEFAULT 0;

View File

@@ -1,5 +0,0 @@
-- Copyright 1999-2023. Plesk International GmbH. All rights reserved.
ALTER TABLE `Repositories` ADD `postDeploymentActionsEnabled` int(1) NOT NULL DEFAULT '0';
UPDATE `Repositories` SET `postDeploymentActionsEnabled` = 1 WHERE `postDeploymentActions` IS NOT NULL;

View File

@@ -1,11 +0,0 @@
CREATE TABLE IF NOT EXISTS `DeployKeys` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`uuid` varchar(36) NOT NULL,
`domainUuid` varchar(36) NOT NULL,
`name` varchar(255) NOT NULL,
`isDefault` int(1) NOT NULL DEFAULT '0'
);
ALTER TABLE `Repositories` ADD `deployKeyUuid` varchar(36) DEFAULT NULL;

View File

@@ -1,3 +0,0 @@
-- Copyright 1999-2023. Plesk International GmbH. All rights reserved.
ALTER TABLE `Repositories` ADD `smbUserIds` TEXT DEFAULT NULL;

View File

@@ -1,15 +0,0 @@
-- Copyright 1999-2023. Plesk International GmbH. All rights reserved.
CREATE TABLE IF NOT EXISTS `RepositoryDeploymentInfo` (
`repoUuid` VARCHAR(36) NOT NULL PRIMARY KEY,
`lastCommitHash` VARCHAR(40) DEFAULT NULL,
`deployedCommitHash` VARCHAR(40) DEFAULT NULL,
`deployedCommitAuthor` TEXT DEFAULT NULL,
`deployedCommitDate` TIMESTAMP DEFAULT NULL,
`deployedCommitMessage` TEXT DEFAULT NULL,
CONSTRAINT `fk_repository_uuid`
FOREIGN KEY (`repoUuid`)
REFERENCES `Repositories` (uuid)
ON DELETE CASCADE
NOT DEFERRABLE INITIALLY IMMEDIATE
);

View File

@@ -1,48 +0,0 @@
-- Copyright 1999-2023. Plesk International GmbH. All rights reserved.
CREATE TABLE IF NOT EXISTS `version` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`dbVersion` TEXT NOT NULL
);
INSERT INTO `version` (`dbVersion`) VALUES ('202308041501');
CREATE TABLE IF NOT EXISTS `Repositories` (
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`domainId` int(10) NOT NULL,
`name` varchar(255) NOT NULL,
`type` varchar(20) NOT NULL DEFAULT 'none',
`deploymentMode` varchar(20) NOT NULL DEFAULT 'none',
`branch` varchar(255) DEFAULT NULL,
`deploymentPath` varchar(255) DEFAULT NULL,
`fetchUrl` varchar(255) DEFAULT NULL,
`uuid` varchar(36) NOT NULL,
`skipSslVerification` int(1) NOT NULL DEFAULT '0',
`postDeploymentActionsEnabled` int(1) NOT NULL DEFAULT '0',
`postDeploymentActions` TEXT DEFAULT NULL,
`httpUser` varchar(255) DEFAULT NULL,
`httpPassword` varchar(255) DEFAULT NULL,
`deploymentsCounter` integer DEFAULT 0,
`deployKeyUuid` varchar(36) DEFAULT NULL,
`smbUserIds` TEXT DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS `DeployKeys` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`uuid` varchar(36) NOT NULL,
`domainUuid` varchar(36) NOT NULL,
`name` varchar(255) NOT NULL,
`isDefault` int(1) NOT NULL DEFAULT '0'
);
CREATE TABLE IF NOT EXISTS `RepositoryDeploymentInfo` (
`repoUuid` VARCHAR(36) NOT NULL PRIMARY KEY,
`lastCommitHash` VARCHAR(40) DEFAULT NULL,
`deployedCommitHash` VARCHAR(40) DEFAULT NULL,
`deployedCommitAuthor` TEXT DEFAULT NULL,
`deployedCommitDate` TIMESTAMP DEFAULT NULL,
`deployedCommitMessage` TEXT DEFAULT NULL,
CONSTRAINT `fk_repository_uuid`
FOREIGN KEY (`repoUuid`)
REFERENCES `Repositories` (uuid)
ON DELETE CASCADE
NOT DEFERRABLE INITIALLY IMMEDIATE
);