From bd1f7ac63b48f3fa8e941fd85739d11bc7145736 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Thu, 15 Apr 2021 16:11:21 +0200 Subject: [PATCH] Update database structure --- docs/db_struct.sql | 1 + docs/migration.sql | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/db_struct.sql b/docs/db_struct.sql index 7e1d396..e848923 100644 --- a/docs/db_struct.sql +++ b/docs/db_struct.sql @@ -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; diff --git a/docs/migration.sql b/docs/migration.sql index 1c39723..c6cb325 100644 --- a/docs/migration.sql +++ b/docs/migration.sql @@ -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`;