1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29:21 +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_posts_after` int DEFAULT '0',
`delete_conversation_messages_after` int DEFAULT '0', `delete_conversation_messages_after` int DEFAULT '0',
`delete_likes_after` int DEFAULT '0', `delete_likes_after` int DEFAULT '0',
`allow_notif_conv` int DEFAULT '1',
PRIMARY KEY (`ID`) PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

View File

@ -1,6 +1,3 @@
-- Groups table -- User table
ALTER TABLE `comunic_groups` ALTER TABLE `utilisateurs`
ADD COLUMN `is_members_list_public` TINYINT(1) NULL DEFAULT 0 AFTER `url`; ADD COLUMN `allow_notif_conv` INT NULL DEFAULT 1 AFTER `delete_likes_after`;
ALTER TABLE `comunic_conversations_list`
ADD COLUMN `min_group_membership_level` INT NULL AFTER `group_id`;