]> git.mxchange.org Git - friendica.git/blobdiff - database.sql
frio: readability improvement, first pass
[friendica.git] / database.sql
index fbfdd70bbfccecac05e8052bc775c93904b63b13..1d4f335e4a17b343932e54cd0986620d194bf601 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
--- Friendica 2020.12-dev (Red Hot Poker)
--- DB_UPDATE_VERSION 1383
+-- Friendica 2021.03-dev (Red Hot Poker)
+-- DB_UPDATE_VERSION 1385
 -- ------------------------------------------
 
 
@@ -20,6 +20,7 @@ CREATE TABLE IF NOT EXISTS `gserver` (
        `poco` varchar(255) NOT NULL DEFAULT '' COMMENT '',
        `noscrape` varchar(255) NOT NULL DEFAULT '' COMMENT '',
        `network` char(4) NOT NULL DEFAULT '' COMMENT '',
+       `protocol` tinyint unsigned COMMENT 'The protocol of the server',
        `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',
@@ -1045,6 +1046,7 @@ CREATE TABLE IF NOT EXISTS `photo` (
        `contact-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'contact.id',
        `guid` char(16) NOT NULL DEFAULT '' COMMENT 'A unique identifier for this photo',
        `resource-id` char(32) NOT NULL DEFAULT '' COMMENT '',
+       `hash` char(32) COMMENT 'hash value of the photo',
        `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'creation date',
        `edited` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'last edited date',
        `title` varchar(255) NOT NULL DEFAULT '' COMMENT '',
@@ -1772,5 +1774,3 @@ CREATE VIEW `workerqueue-view` AS SELECT
        FROM `process`
                        INNER JOIN `workerqueue` ON `workerqueue`.`pid` = `process`.`pid`
                        WHERE NOT `workerqueue`.`done`;
-
-