2020-11-14 15:08:27 +00:00
|
|
|
|
|
|
|
CREATE TABLE `version` (
|
2022-11-14 09:00:51 +00:00
|
|
|
`code` VARCHAR(50) NOT NULL,
|
2021-10-23 13:20:35 +00:00
|
|
|
`number` CHAR(11) NULL DEFAULT NULL,
|
|
|
|
`gitCommit` VARCHAR(255) NULL DEFAULT NULL,
|
2022-04-04 18:53:18 +00:00
|
|
|
`updated` DATETIME NOT NULL,
|
|
|
|
`lastNumber` CHAR(11) NULL DEFAULT NULL
|
2020-11-19 12:51:27 +00:00
|
|
|
) ENGINE=InnoDB;
|
2020-11-14 15:08:27 +00:00
|
|
|
|
|
|
|
ALTER TABLE `version`
|
|
|
|
ADD PRIMARY KEY (`code`);
|
|
|
|
|
2022-01-31 13:07:08 +00:00
|
|
|
CREATE TABLE `versionLog` (
|
2022-11-14 09:00:51 +00:00
|
|
|
`code` VARCHAR(50) NOT NULL,
|
2022-01-31 13:07:08 +00:00
|
|
|
`number` CHAR(11) NOT NULL,
|
|
|
|
`file` VARCHAR(255) NOT NULL,
|
|
|
|
`user` VARCHAR(255) NULL,
|
|
|
|
`updated` DATETIME NOT NULL,
|
|
|
|
`errorNumber` INT(10) UNSIGNED DEFAULT NULL,
|
|
|
|
`errorMessage` VARCHAR(255) DEFAULT NULL
|
2020-11-19 12:51:27 +00:00
|
|
|
) ENGINE=InnoDB;
|
2020-11-14 15:08:27 +00:00
|
|
|
|
2022-01-31 13:07:08 +00:00
|
|
|
ALTER TABLE `versionLog`
|
|
|
|
ADD PRIMARY KEY (`code`,`number`,`file`);
|
2023-09-22 08:25:06 +00:00
|
|
|
|
|
|
|
CREATE TABLE `util`.`versionConfig` (
|
|
|
|
`id` INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
`realm` VARCHAR(16) NULL DEFAULT NULL COMMENT 'Data set on which the project runs'
|
|
|
|
) ENGINE=InnoDB;
|