1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-26 05:28:50 +00:00

Add migration script

This commit is contained in:
Pierre HUBERT 2021-05-08 18:22:28 +02:00
parent 88eb2914ae
commit d84b7051fb
2 changed files with 35 additions and 1 deletions

View File

@ -271,3 +271,21 @@ CREATE TABLE `forez_presence` (
`month` INT NULL,
`day` INT NULL,
PRIMARY KEY (`id`));
CREATE TABLE `comunic_admin` (
`id` INT NOT NULL AUTO_INCREMENT,
`time_create` INT NULL,
`name` VARCHAR(45) NULL,
`email` VARCHAR(45) NULL,
`reset_token` VARCHAR(255) NULL,
`reset_token_expire` INT NULL,
PRIMARY KEY (`id`));
CREATE TABLE `comunic_admin_key` (
`id` INT NOT NULL,
`admin_id` INT NULL,
`name` VARCHAR(45) NULL,
`time_add` INT NULL,
`key` TEXT NULL,
PRIMARY KEY (`id`));

View File

@ -1 +1,17 @@
-- Nothing yet
-- Comunic admin
CREATE TABLE `comunic_admin` (
`id` INT NOT NULL AUTO_INCREMENT,
`time_create` INT NULL,
`name` VARCHAR(45) NULL,
`email` VARCHAR(45) NULL,
`reset_token` VARCHAR(255) NULL,
`reset_token_expire` INT NULL,
PRIMARY KEY (`id`));
CREATE TABLE `comunic_admin_key` (
`id` INT NOT NULL,
`admin_id` INT NULL,
`name` VARCHAR(45) NULL,
`time_add` INT NULL,
`key` TEXT NULL,
PRIMARY KEY (`id`));