X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=database.sql;h=b37036762e4be0d553d5bac573326c921bea75bd;hb=cc4bae6382f95b95ed0643adacbd0fcfcf16034a;hp=771174719c8ee6c4459863c29785ef4f5625f9f8;hpb=b2e7a9cc5cfba5a0d82ed96aa7d0b578a52b7bb1;p=friendica.git diff --git a/database.sql b/database.sql index 771174719c..b37036762e 100644 --- a/database.sql +++ b/database.sql @@ -1,6 +1,6 @@ -- ------------------------------------------ -- Friendica 2020.12-dev (Red Hot Poker) --- DB_UPDATE_VERSION 1377 +-- DB_UPDATE_VERSION 1378 -- ------------------------------------------ @@ -248,6 +248,15 @@ CREATE TABLE IF NOT EXISTS `permissionset` ( FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON UPDATE RESTRICT ON DELETE CASCADE ) DEFAULT COLLATE utf8mb4_general_ci COMMENT=''; +-- +-- TABLE verb +-- +CREATE TABLE IF NOT EXISTS `verb` ( + `id` smallint unsigned NOT NULL auto_increment, + `name` varchar(100) NOT NULL DEFAULT '' COMMENT '', + PRIMARY KEY(`id`) +) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Activity Verbs'; + -- -- TABLE 2fa_app_specific_password -- @@ -661,7 +670,7 @@ CREATE TABLE IF NOT EXISTS `item` ( `author-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the author of this item', `causer-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation', `icid` int unsigned COMMENT 'Id of the item-content table entry that contains the whole item content', - `vid` int unsigned COMMENT 'Id of the verb table entry that contains the activity verbs', + `vid` smallint unsigned COMMENT 'Id of the verb table entry that contains the activity verbs', `extid` varchar(255) NOT NULL DEFAULT '' COMMENT '', `post-type` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'Post type (personal note, bookmark, ...)', `global` boolean NOT NULL DEFAULT '0' COMMENT '', @@ -1426,15 +1435,6 @@ CREATE TABLE IF NOT EXISTS `user-item` ( FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON UPDATE RESTRICT ON DELETE CASCADE ) DEFAULT COLLATE utf8mb4_general_ci COMMENT='User specific item data'; --- --- TABLE verb --- -CREATE TABLE IF NOT EXISTS `verb` ( - `id` int unsigned NOT NULL auto_increment, - `name` varchar(100) NOT NULL DEFAULT '' COMMENT '', - PRIMARY KEY(`id`) -) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Activity Verbs'; - -- -- TABLE worker-ipc --