]> git.mxchange.org Git - friendica.git/blobdiff - database.sql
Merge pull request #10229 from MrPetovan/bug/fatal-errors
[friendica.git] / database.sql
index 1727911c93af61262e2ccf050691e406d72f4cb3..666a48f66786089cdd74531e57886ae886410025 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
--- Friendica 2021.03-rc (Red Hot Poker)
--- DB_UPDATE_VERSION 1413
+-- Friendica 2021.06-dev (Siberian Iris)
+-- DB_UPDATE_VERSION 1415
 -- ------------------------------------------
 
 
@@ -364,6 +364,21 @@ CREATE TABLE IF NOT EXISTS `apcontact` (
        FOREIGN KEY (`gsid`) REFERENCES `gserver` (`id`) ON UPDATE RESTRICT ON DELETE RESTRICT
 ) DEFAULT COLLATE utf8mb4_general_ci COMMENT='ActivityPub compatible contacts - used in the ActivityPub implementation';
 
+--
+-- TABLE application
+--
+CREATE TABLE IF NOT EXISTS `application` (
+       `id` int unsigned NOT NULL auto_increment COMMENT 'generated index',
+       `client_id` varchar(64) NOT NULL COMMENT '',
+       `client_secret` varchar(64) NOT NULL COMMENT '',
+       `name` varchar(255) NOT NULL COMMENT '',
+       `redirect_uri` varchar(255) NOT NULL COMMENT '',
+       `website` varchar(255) COMMENT '',
+       `scopes` varchar(255) COMMENT '',
+        PRIMARY KEY(`id`),
+        UNIQUE INDEX `client_id` (`client_id`)
+) DEFAULT COLLATE utf8mb4_general_ci COMMENT='OAuth application';
+
 --
 -- TABLE attach
 --
@@ -1037,6 +1052,13 @@ CREATE TABLE IF NOT EXISTS `post-media` (
        `preview-height` smallint unsigned COMMENT 'Height of the preview picture',
        `preview-width` smallint unsigned COMMENT 'Width of the preview picture',
        `description` text COMMENT '',
+       `name` varchar(255) COMMENT 'Name of the media',
+       `author-url` varbinary(255) COMMENT 'URL of the author of the media',
+       `author-name` varchar(255) COMMENT 'Name of the author of the media',
+       `author-image` varbinary(255) COMMENT 'Image of the author of the media',
+       `publisher-url` varbinary(255) COMMENT 'URL of the publisher of the media',
+       `publisher-name` varchar(255) COMMENT 'Name of the publisher of the media',
+       `publisher-image` varbinary(255) COMMENT 'Image of the publisher of the media',
         PRIMARY KEY(`id`),
         UNIQUE INDEX `uri-id-url` (`uri-id`,`url`),
        FOREIGN KEY (`uri-id`) REFERENCES `item-uri` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE