From 7ec2c500e3b7a7c501808b6cb502e700060c4133 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 10 Apr 2021 19:04:08 +0200 Subject: [PATCH] Update database structure --- docs/db_struct.sql | 1 + docs/migration.sql | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/db_struct.sql b/docs/db_struct.sql index c2e0083..600c007 100644 --- a/docs/db_struct.sql +++ b/docs/db_struct.sql @@ -241,6 +241,7 @@ CREATE TABLE `utilisateurs` ( `delete_posts_after` int DEFAULT '0', `delete_conversation_messages_after` int DEFAULT '0', `delete_likes_after` int DEFAULT '0', + `allow_notif_conv` int DEFAULT '1', PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; diff --git a/docs/migration.sql b/docs/migration.sql index 9bd68c6..c1008e7 100644 --- a/docs/migration.sql +++ b/docs/migration.sql @@ -1,6 +1,3 @@ --- Groups table -ALTER TABLE `comunic_groups` - ADD COLUMN `is_members_list_public` TINYINT(1) NULL DEFAULT 0 AFTER `url`; - -ALTER TABLE `comunic_conversations_list` - ADD COLUMN `min_group_membership_level` INT NULL AFTER `group_id`; +-- User table +ALTER TABLE `utilisateurs` + ADD COLUMN `allow_notif_conv` INT NULL DEFAULT 1 AFTER `delete_likes_after`;