2020-11-14 15:08:27 +00:00
|
|
|
|
|
|
|
CREATE TABLE `version` (
|
2021-10-23 13:20:35 +00:00
|
|
|
`code` VARCHAR(255) NOT NULL,
|
|
|
|
`number` CHAR(11) NULL DEFAULT NULL,
|
|
|
|
`gitCommit` VARCHAR(255) NULL DEFAULT NULL,
|
|
|
|
`updated` DATETIME NOT 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`);
|
|
|
|
|
|
|
|
CREATE TABLE `versionUser` (
|
2021-10-23 13:20:35 +00:00
|
|
|
`code` VARCHAR(255) NOT NULL,
|
|
|
|
`user` VARCHAR(255) NOT NULL,
|
|
|
|
`number` CHAR(11) NULL DEFAULT NULL,
|
|
|
|
`gitCommit` VARCHAR(255) NULL DEFAULT NULL,
|
|
|
|
`updated` DATETIME NOT NULL DEFAULT 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 `versionUser`
|
|
|
|
ADD PRIMARY KEY (`code`,`user`);
|