X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=database.sql;h=7c0a593795e342c48be493469d6b3730e11ad15c;hb=9ea6d4b26d4375502c567276705dff2ff678122e;hp=e8662f95c8d86888e10104c20ef8e8d051e1f55d;hpb=5bca333bf02f2e4e6e0664e19f4e6c5db2fd680c;p=friendica.git diff --git a/database.sql b/database.sql index e8662f95c8..7c0a593795 100644 --- a/database.sql +++ b/database.sql @@ -1,6 +1,6 @@ -- ------------------------------------------ --- Friendica 2018-05-dev (The Tazmans Flax-lily) --- DB_UPDATE_VERSION 1258 +-- Friendica 2018.05-rc (The Tazmans Flax-lily) +-- DB_UPDATE_VERSION 1266 -- ------------------------------------------ @@ -397,6 +397,8 @@ CREATE TABLE IF NOT EXISTS `gserver` ( `noscrape` varchar(255) NOT NULL DEFAULT '' COMMENT '', `network` char(4) NOT NULL DEFAULT '' COMMENT '', `platform` varchar(255) NOT NULL DEFAULT '' COMMENT '', + `relay-subscribe` boolean NOT NULL DEFAULT '0' COMMENT 'Has the server subscribed to the relay system', + `relay-scope` varchar(10) NOT NULL DEFAULT '' COMMENT 'The scope of messages that the server wants to get', `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '', `last_poco_query` datetime DEFAULT '0001-01-01 00:00:00' COMMENT '', `last_contact` datetime DEFAULT '0001-01-01 00:00:00' COMMENT '', @@ -405,6 +407,16 @@ CREATE TABLE IF NOT EXISTS `gserver` ( UNIQUE INDEX `nurl` (`nurl`(190)) ) DEFAULT COLLATE utf8mb4_general_ci; +-- +-- TABLE gserver-tag +-- +CREATE TABLE IF NOT EXISTS `gserver-tag` ( + `gserver-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'The id of the gserver', + `tag` varchar(100) NOT NULL DEFAULT '' COMMENT 'Tag that the server has subscribed', + PRIMARY KEY(`gserver-id`,`tag`), + INDEX `tag` (`tag`) +) DEFAULT COLLATE utf8mb4_general_ci; + -- -- TABLE hook -- @@ -843,10 +855,13 @@ CREATE TABLE IF NOT EXISTS `push_subscriber` ( `callback_url` varchar(255) NOT NULL DEFAULT '' COMMENT '', `topic` varchar(255) NOT NULL DEFAULT '' COMMENT '', `nickname` varchar(255) NOT NULL DEFAULT '' COMMENT '', - `push` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '', - `last_update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '', + `push` tinyint NOT NULL DEFAULT 0 COMMENT 'Retrial counter', + `last_update` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of last successful trial', + `next_try` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Next retrial date', + `renewed` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of last subscription renewal', `secret` varchar(255) NOT NULL DEFAULT '' COMMENT '', - PRIMARY KEY(`id`) + PRIMARY KEY(`id`), + INDEX `next_try` (`next_try`) ) DEFAULT COLLATE utf8mb4_general_ci; -- @@ -1061,6 +1076,16 @@ CREATE TABLE IF NOT EXISTS `userd` ( INDEX `username` (`username`(32)) ) DEFAULT COLLATE utf8mb4_general_ci; +-- +-- TABLE user-item +-- +CREATE TABLE IF NOT EXISTS `user-item` ( + `iid` int unsigned NOT NULL DEFAULT 0 COMMENT 'Item id', + `uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'User id', + `hidden` boolean NOT NULL DEFAULT '0' COMMENT 'Hidden marker', + PRIMARY KEY(`uid`,`iid`) +) DEFAULT COLLATE utf8mb4_general_ci; + -- -- TABLE workerqueue -- @@ -1076,7 +1101,7 @@ CREATE TABLE IF NOT EXISTS `workerqueue` ( INDEX `pid` (`pid`), INDEX `parameter` (`parameter`(64)), INDEX `priority_created` (`priority`,`created`), - INDEX `executed` (`executed`) + INDEX `done_executed` (`done`,`executed`) ) DEFAULT COLLATE utf8mb4_general_ci;