From ce1d851585b80ee1f223d4c6ba2089981aae0900 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 17 Mar 2021 17:59:43 +0100 Subject: [PATCH] Handle pre-flight requests --- docs/db_struct.sql | 16 +++++++++------- docs/migration.sql | 4 +++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/docs/db_struct.sql b/docs/db_struct.sql index f202bb5..ff72406 100644 --- a/docs/db_struct.sql +++ b/docs/db_struct.sql @@ -105,19 +105,21 @@ CREATE TABLE `comunic_conversations_members` ( DROP TABLE IF EXISTS `comunic_groups`; CREATE TABLE `comunic_groups` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `time_create` int(11) DEFAULT NULL, - `userid_create` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `time_create` int DEFAULT NULL, + `userid_create` int DEFAULT NULL, `name` varchar(45) DEFAULT NULL, `path_logo` varchar(250) DEFAULT NULL, - `visibility` int(11) NOT NULL DEFAULT '1', - `registration_level` int(11) DEFAULT '1', - `posts_level` int(11) DEFAULT '0', + `visibility` int NOT NULL DEFAULT '1', + `registration_level` int DEFAULT '1', + `posts_level` int DEFAULT '0', `virtual_directory` varchar(45) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `url` varchar(255) DEFAULT NULL, + `is_members_list_public` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + DROP TABLE IF EXISTS `comunic_groups_members`; CREATE TABLE `comunic_groups_members` ( diff --git a/docs/migration.sql b/docs/migration.sql index 105f2e9..bc127e7 100644 --- a/docs/migration.sql +++ b/docs/migration.sql @@ -1 +1,3 @@ --- Nothing yet \ No newline at end of file +-- Groups table +ALTER TABLE `comunic`.`comunic_groups` + ADD COLUMN `is_members_list_public` TINYINT(1) NULL DEFAULT 0 AFTER `url`;