1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29:21 +00:00

Handle pre-flight requests

This commit is contained in:
Pierre HUBERT 2021-03-17 17:59:43 +01:00
parent eb0c7aec6a
commit ce1d851585
2 changed files with 12 additions and 8 deletions

View File

@ -105,19 +105,21 @@ CREATE TABLE `comunic_conversations_members` (
DROP TABLE IF EXISTS `comunic_groups`; DROP TABLE IF EXISTS `comunic_groups`;
CREATE TABLE `comunic_groups` ( CREATE TABLE `comunic_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int NOT NULL AUTO_INCREMENT,
`time_create` int(11) DEFAULT NULL, `time_create` int DEFAULT NULL,
`userid_create` int(11) DEFAULT NULL, `userid_create` int DEFAULT NULL,
`name` varchar(45) DEFAULT NULL, `name` varchar(45) DEFAULT NULL,
`path_logo` varchar(250) DEFAULT NULL, `path_logo` varchar(250) DEFAULT NULL,
`visibility` int(11) NOT NULL DEFAULT '1', `visibility` int NOT NULL DEFAULT '1',
`registration_level` int(11) DEFAULT '1', `registration_level` int DEFAULT '1',
`posts_level` int(11) DEFAULT '0', `posts_level` int DEFAULT '0',
`virtual_directory` varchar(45) DEFAULT NULL, `virtual_directory` varchar(45) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL, `url` varchar(255) DEFAULT NULL,
`is_members_list_public` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `comunic_groups_members`; DROP TABLE IF EXISTS `comunic_groups_members`;
CREATE TABLE `comunic_groups_members` ( CREATE TABLE `comunic_groups_members` (

View File

@ -1 +1,3 @@
-- Nothing yet -- Groups table
ALTER TABLE `comunic`.`comunic_groups`
ADD COLUMN `is_members_list_public` TINYINT(1) NULL DEFAULT 0 AFTER `url`;