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

Update database structure

This commit is contained in:
Pierre HUBERT 2021-04-15 16:11:21 +02:00
parent 0f2f882265
commit bd1f7ac63b
2 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,7 @@ CREATE TABLE `comunic_user_access_tokens` (
`user_id` int DEFAULT NULL,
`last_refresh` int NOT NULL,
`timeout` int NOT NULL,
`firebase_project_name` VARCHAR(45) NULL,
`push_notifications_token` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

View File

@ -11,3 +11,5 @@ ALTER TABLE `comunic_clients`
-- Tokens table
ALTER TABLE `comunic_user_access_tokens`
ADD COLUMN `push_notifications_token` TEXT NULL AFTER `timeout`;
ALTER TABLE `comunic_clients`
ADD COLUMN `firebase_project_name` VARCHAR(45) NULL AFTER `default_expiration_time`;