1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 21:39:21 +00:00

Rename column

This commit is contained in:
Pierre HUBERT 2021-04-15 15:32:47 +02:00
parent d1783b7813
commit 720ea04268
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ CREATE TABLE `comunic_clients` (
`domain` varchar(45) DEFAULT NULL COMMENT 'Use to check Referer & define Access-Control-Allow-Origin', `domain` varchar(45) DEFAULT NULL COMMENT 'Use to check Referer & define Access-Control-Allow-Origin',
`comment` varchar(45) DEFAULT NULL COMMENT 'Information about the client', `comment` varchar(45) DEFAULT NULL COMMENT 'Information about the client',
`default_expiration_time` int DEFAULT '2592000' COMMENT '2592000 = 1 month', `default_expiration_time` int DEFAULT '2592000' COMMENT '2592000 = 1 month',
`firebase_token` varchar(255) DEFAULT NULL, `firebase_service_account_file` TEXT DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

View File

@ -6,7 +6,7 @@ ALTER TABLE `utilisateurs`
-- Clients table -- Clients table
ALTER TABLE `comunic_clients` ALTER TABLE `comunic_clients`
ADD COLUMN `firebase_token` VARCHAR(255) NULL AFTER `default_expiration_time`; ADD COLUMN `firebase_service_account_file` TEXT NULL AFTER `default_expiration_time`;
-- Tokens table -- Tokens table
ALTER TABLE `comunic_user_access_tokens` ALTER TABLE `comunic_user_access_tokens`