]> git.mxchange.org Git - friendica.git/blobdiff - database.sql
Fix PHP Warning: preg_replace(): Compilation failed in include/items
[friendica.git] / database.sql
index 85cd811c1b0ac15cf766b466f0e6f39d2aa775a7..3f568a1dcf4a615b149907542ddc8cca460354a0 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 3.6-dev (Asparagus)
--- DB_UPDATE_VERSION 1248
+-- DB_UPDATE_VERSION 1253
 -- ------------------------------------------
 
 
@@ -853,18 +853,18 @@ CREATE TABLE IF NOT EXISTS `push_subscriber` (
 --
 CREATE TABLE IF NOT EXISTS `queue` (
        `id` int NOT NULL auto_increment COMMENT '',
-       `cid` int NOT NULL DEFAULT 0 COMMENT '',
-       `network` varchar(32) NOT NULL DEFAULT '' COMMENT '',
-       `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
-       `last` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
+       `cid` int NOT NULL DEFAULT 0 COMMENT 'Message receiver',
+       `network` varchar(32) NOT NULL DEFAULT '' COMMENT 'Receiver\'s network',
+       `guid` varchar(255) NOT NULL DEFAULT '' COMMENT 'Unique GUID of the message',
+       `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date, when the message was created',
+       `last` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of last trial',
+       `next` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Next retrial date',
+       `retrial` tinyint NOT NULL DEFAULT 0 COMMENT 'Retrial counter',
        `content` mediumtext COMMENT '',
        `batch` boolean NOT NULL DEFAULT '0' COMMENT '',
         PRIMARY KEY(`id`),
-        INDEX `cid` (`cid`),
-        INDEX `created` (`created`),
         INDEX `last` (`last`),
-        INDEX `network` (`network`),
-        INDEX `batch` (`batch`)
+        INDEX `next` (`next`)
 ) DEFAULT COLLATE utf8mb4_general_ci;
 
 --
@@ -1003,6 +1003,7 @@ CREATE TABLE IF NOT EXISTS `tokens` (
 --
 CREATE TABLE IF NOT EXISTS `user` (
        `uid` mediumint NOT NULL auto_increment COMMENT '',
+       `parent-uid` mediumint NOT NULL DEFAULT 0 COMMENT 'The parent user that has full control about this user',
        `guid` varchar(64) NOT NULL DEFAULT '' COMMENT '',
        `username` varchar(255) NOT NULL DEFAULT '' COMMENT '',
        `password` varchar(255) NOT NULL DEFAULT '' COMMENT '',
@@ -1065,7 +1066,7 @@ CREATE TABLE IF NOT EXISTS `userd` (
 --
 CREATE TABLE IF NOT EXISTS `workerqueue` (
        `id` int NOT NULL auto_increment COMMENT 'Auto incremented worker task id',
-       `parameter` mediumtext COMMENT 'Task command',
+       `parameter` mediumblob COMMENT 'Task command',
        `priority` tinyint NOT NULL DEFAULT 0 COMMENT 'Task priority',
        `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Creation date',
        `pid` int NOT NULL DEFAULT 0 COMMENT 'Process id of the worker',