1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-26 05:28:50 +00:00

Update database structure

This commit is contained in:
Pierre HUBERT 2021-04-10 19:04:08 +02:00
parent a7bc93031a
commit 7ec2c500e3
2 changed files with 4 additions and 6 deletions

View File

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

View File

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