From a4bdc89be2abea9586b97ca1df5278bb3f335409 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 16 Apr 2021 14:43:58 +0200 Subject: [PATCH] Update database structure --- docs/db_struct.sql | 2 ++ docs/migration.sql | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/db_struct.sql b/docs/db_struct.sql index e848923..7515202 100644 --- a/docs/db_struct.sql +++ b/docs/db_struct.sql @@ -250,6 +250,8 @@ CREATE TABLE `utilisateurs` ( `delete_likes_after` int DEFAULT '0', `allow_notif_conv` int DEFAULT '1', `allow_notif_sound` int DEFAULT '1', + `is_email_visible` int DEFAULT '0', + `location` varchar(45) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; diff --git a/docs/migration.sql b/docs/migration.sql index 105f2e9..dfabbef 100644 --- a/docs/migration.sql +++ b/docs/migration.sql @@ -1 +1,4 @@ --- Nothing yet \ No newline at end of file +-- Nothing yet +ALTER TABLE `utilisateurs` + ADD COLUMN `is_email_visible` INT NULL DEFAULT 0 AFTER `allow_notif_sound`, + ADD COLUMN `location` VARCHAR(45) NULL AFTER `is_email_visible`;