myt/structure.sql

22 lines
659 B
MySQL
Raw Normal View History

2020-11-14 15:08:27 +00:00
CREATE TABLE `version` (
`code` varchar(255) NOT NULL,
2021-10-16 06:44:19 +00:00
`number` char(11) NULL DEFAULT NULL,
`gitCommit` varchar(255) NULL DEFAULT NULL,
2020-11-14 15:08:27 +00:00
`updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB;
2020-11-14 15:08:27 +00:00
ALTER TABLE `version`
ADD PRIMARY KEY (`code`);
CREATE TABLE `versionUser` (
`code` varchar(255) NOT NULL,
`user` varchar(255) NOT NULL,
2021-10-16 06:44:19 +00:00
`number` char(11) NULL DEFAULT NULL,
`gitCommit` varchar(255) NULL DEFAULT NULL,
2020-11-14 15:08:27 +00:00
`updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB;
2020-11-14 15:08:27 +00:00
ALTER TABLE `versionUser`
ADD PRIMARY KEY (`code`,`user`);