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`;