mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 07:19:22 +00:00
Update conversation list table
This commit is contained in:
parent
bea7be58ae
commit
e41c647e6f
@ -61,16 +61,16 @@ CREATE TABLE `comunic_user_access_tokens` (
|
|||||||
|
|
||||||
DROP TABLE IF EXISTS `comunic_conversations_list`;
|
DROP TABLE IF EXISTS `comunic_conversations_list`;
|
||||||
CREATE TABLE `comunic_conversations_list` (
|
CREATE TABLE `comunic_conversations_list` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int NOT NULL AUTO_INCREMENT,
|
||||||
`user_id` int(11) DEFAULT NULL,
|
|
||||||
`name` varchar(50) DEFAULT NULL,
|
`name` varchar(50) DEFAULT NULL,
|
||||||
`last_active` int(11) DEFAULT NULL,
|
`creation_time` int DEFAULT NULL,
|
||||||
`creation_time` int(11) DEFAULT NULL,
|
`can_everyone_add_members` tinyint DEFAULT '1',
|
||||||
`can_everyone_add_members` tinyint(4) DEFAULT '1',
|
`color` varchar(6) DEFAULT NULL,
|
||||||
|
`background` varchar(255) DEFAULT NULL,
|
||||||
|
`group_id` 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,
|
||||||
|
@ -17,3 +17,11 @@ alter table comunic_conversations_members drop column saw_last_message;
|
|||||||
alter table comunic_conversations_members
|
alter table comunic_conversations_members
|
||||||
add column is_admin int default 1,
|
add column is_admin int default 1,
|
||||||
add column last_message_seen int default 0;
|
add column last_message_seen int default 0;
|
||||||
|
|
||||||
|
-- Conversations list table
|
||||||
|
alter table comunic_conversations_list drop column user_id;
|
||||||
|
alter table comunic_conversations_list drop column last_active;
|
||||||
|
alter table comunic_conversations_list
|
||||||
|
add column color varchar(6),
|
||||||
|
add column background varchar(255),
|
||||||
|
add group_id int;
|
Loading…
Reference in New Issue
Block a user