]> git.mxchange.org Git - friendica.git/blobdiff - database.sql
Replaced the defunct relay server at another place as well
[friendica.git] / database.sql
index f149425e60c8e262be262866978392135096fc34..addd396ffd2d10b3924229eadbfae16f9a030069 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 2020.09-dev (Red Hot Poker)
--- DB_UPDATE_VERSION 1365
+-- DB_UPDATE_VERSION 1367
 -- ------------------------------------------
 
 
@@ -98,6 +98,7 @@ CREATE TABLE IF NOT EXISTS `contact` (
        `forum` boolean NOT NULL DEFAULT '0' COMMENT 'contact is a forum',
        `prv` boolean NOT NULL DEFAULT '0' COMMENT 'contact is a private group',
        `contact-type` tinyint NOT NULL DEFAULT 0 COMMENT '',
+       `manually-approve` boolean COMMENT '',
        `hidden` boolean NOT NULL DEFAULT '0' COMMENT '',
        `archive` boolean NOT NULL DEFAULT '0' COMMENT '',
        `pending` boolean NOT NULL DEFAULT '1' COMMENT '',
@@ -584,6 +585,16 @@ CREATE TABLE IF NOT EXISTS `hook` (
         UNIQUE INDEX `hook_file_function` (`hook`,`file`,`function`)
 ) DEFAULT COLLATE utf8mb4_general_ci COMMENT='addon hook registry';
 
+--
+-- TABLE host
+--
+CREATE TABLE IF NOT EXISTS `host` (
+       `id` tinyint unsigned NOT NULL auto_increment COMMENT 'sequential ID',
+       `name` varchar(128) NOT NULL DEFAULT '' COMMENT 'The hostname',
+        PRIMARY KEY(`id`),
+        UNIQUE INDEX `name` (`name`)
+) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Hostname';
+
 --
 -- TABLE inbox-status
 --
@@ -1540,6 +1551,7 @@ CREATE VIEW `owner-view` AS SELECT
        `contact`.`forum` AS `forum`,
        `contact`.`prv` AS `prv`,
        `contact`.`contact-type` AS `contact-type`,
+       `contact`.`manually-approve` AS `manually-approve`,
        `contact`.`hidden` AS `hidden`,
        `contact`.`archive` AS `archive`,
        `contact`.`pending` AS `pending`,