mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 13:29:21 +00:00
Update database structure
This commit is contained in:
parent
32ae6fbb32
commit
1fc6f08b19
@ -68,10 +68,12 @@ CREATE TABLE `comunic_conversations_list` (
|
||||
`color` varchar(6) DEFAULT NULL,
|
||||
`logo` varchar(255) DEFAULT NULL,
|
||||
`group_id` int DEFAULT NULL,
|
||||
`min_group_membership_level` int DEFAULT NULL,
|
||||
`last_activity` int DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS `comunic_conversations_messages`;
|
||||
CREATE TABLE `comunic_conversations_messages` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
|
@ -1,3 +1,6 @@
|
||||
-- Groups table
|
||||
ALTER TABLE `comunic`.`comunic_groups`
|
||||
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`;
|
||||
|
Loading…
Reference in New Issue
Block a user