Remove the posts.privacy column

This commit is contained in:
2018-11-13 02:11:49 +00:00
parent 46cb09b1fc
commit 51c069aa08
3 changed files with 6 additions and 10 deletions

View File

@@ -102,7 +102,6 @@ CREATE TABLE IF NOT EXISTS `posts` (
`text_appearance` char(4) NOT NULL DEFAULT 'norm',
`language` char(2) DEFAULT NULL,
`rtl` tinyint(1) DEFAULT NULL,
`privacy` tinyint(1) NOT NULL,
`owner_id` int(6) DEFAULT NULL,
`collection_id` int(6) DEFAULT NULL,
`pinned_position` tinyint(1) DEFAULT NULL,
@@ -114,8 +113,6 @@ CREATE TABLE IF NOT EXISTS `posts` (
PRIMARY KEY (`id`),
CONSTRAINT `id_slug` UNIQUE (`collection_id`,`slug`),
CONSTRAINT `owner_id` UNIQUE (`owner_id`,`id`)
-- FIXME: this is KEY `privacy_id` (`privacy`,`id`) in mysql
-- CONSTRAINT `privacy_id` (`privacy`,`id`)
);
-- --------------------------------------------------------