1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 07:19:22 +00:00

Update database structure

This commit is contained in:
Pierre HUBERT 2021-04-03 18:01:21 +02:00
parent 32ae6fbb32
commit 1fc6f08b19
2 changed files with 6 additions and 1 deletions

View File

@ -68,10 +68,12 @@ CREATE TABLE `comunic_conversations_list` (
`color` varchar(6) DEFAULT NULL, `color` varchar(6) DEFAULT NULL,
`logo` varchar(255) DEFAULT NULL, `logo` varchar(255) DEFAULT NULL,
`group_id` int DEFAULT NULL, `group_id` int DEFAULT NULL,
`min_group_membership_level` int DEFAULT NULL,
`last_activity` int DEFAULT NULL, `last_activity` int DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `comunic_conversations_messages`; DROP TABLE IF EXISTS `comunic_conversations_messages`;
CREATE TABLE `comunic_conversations_messages` ( CREATE TABLE `comunic_conversations_messages` (
`id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL AUTO_INCREMENT,

View File

@ -1,3 +1,6 @@
-- Groups table -- Groups table
ALTER TABLE `comunic`.`comunic_groups` ALTER TABLE `comunic_groups`
ADD COLUMN `is_members_list_public` TINYINT(1) NULL DEFAULT 0 AFTER `url`; 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`;