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

Update database structure

This commit is contained in:
Pierre HUBERT 2021-04-10 19:17:11 +02:00
parent 2b2b1c9755
commit e725d24104
2 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,7 @@ CREATE TABLE `utilisateurs` (
`delete_conversation_messages_after` int DEFAULT '0', `delete_conversation_messages_after` int DEFAULT '0',
`delete_likes_after` int DEFAULT '0', `delete_likes_after` int DEFAULT '0',
`allow_notif_conv` int DEFAULT '1', `allow_notif_conv` int DEFAULT '1',
`allow_notif_sound` int DEFAULT '1',
PRIMARY KEY (`ID`) PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;

View File

@ -1,3 +1,5 @@
-- User table -- User table
ALTER TABLE `utilisateurs` ALTER TABLE `utilisateurs`
ADD COLUMN `allow_notif_conv` INT NULL DEFAULT 1 AFTER `delete_likes_after`; ADD COLUMN `allow_notif_conv` INT NULL DEFAULT 1 AFTER `delete_likes_after`;
ALTER TABLE `utilisateurs`
ADD COLUMN `allow_notif_sound` INT NULL DEFAULT 1 AFTER `allow_notif_conv`;