From da09215db8ec7428e236c0606af8e45e1023fe23 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 9 Feb 2020 02:35:39 -0500 Subject: [PATCH] [Database] Version 1333 - Exchange profile.pdesc for profile.about --- database.sql | 6 +++--- doc/database/db_profile.md | 4 ++-- static/dbstructure.config.php | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/database.sql b/database.sql index 78c71efeef..9d4086994a 100644 --- a/database.sql +++ b/database.sql @@ -1,6 +1,6 @@ -- ------------------------------------------ -- Friendica 2020.03-dev (Dalmatian Bellflower) --- DB_UPDATE_VERSION 1332 +-- DB_UPDATE_VERSION 1333 -- ------------------------------------------ @@ -999,7 +999,7 @@ CREATE TABLE IF NOT EXISTS `profile` ( `is-default` boolean COMMENT 'Deprecated', `hide-friends` boolean NOT NULL DEFAULT '0' COMMENT 'Hide friend list from viewers of this profile', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '', - `pdesc` varchar(255) NOT NULL DEFAULT '' COMMENT 'Title or description', + `pdesc` varchar(255) COMMENT 'Deprecated', `dob` varchar(32) NOT NULL DEFAULT '0000-00-00' COMMENT 'Day of birth', `address` varchar(255) NOT NULL DEFAULT '' COMMENT '', `locality` varchar(255) NOT NULL DEFAULT '' COMMENT '', @@ -1018,7 +1018,7 @@ CREATE TABLE IF NOT EXISTS `profile` ( `prv_keywords` text COMMENT '', `likes` text COMMENT 'Deprecated', `dislikes` text COMMENT 'Deprecated', - `about` text COMMENT 'Deprecated', + `about` text COMMENT 'Profile description', `summary` varchar(255) COMMENT 'Deprecated', `music` text COMMENT 'Deprecated', `book` text COMMENT 'Deprecated', diff --git a/doc/database/db_profile.md b/doc/database/db_profile.md index 6b9689d124..375e06635a 100644 --- a/doc/database/db_profile.md +++ b/doc/database/db_profile.md @@ -9,7 +9,7 @@ Table profile | is-default | Mark this profile as default profile | tinyint(1) | NO | | 0 | | | hide-friends | Hide friend list from viewers of this profile | tinyint(1) | NO | | 0 | | | name | | varchar(255) | NO | | | | -| pdesc | Title or description | varchar(255) | NO | | | | +| pdesc | Deprecated | varchar(255) | NO | | | | | dob | Day of birth | varchar(32) | NO | | 0001-01-01 | | | address | | varchar(255) | NO | | | | | locality | | varchar(255) | NO | | | | @@ -28,7 +28,7 @@ Table profile | prv_keywords | | text | NO | | NULL | | | likes | Deprecated | text | NO | | NULL | | | dislikes | Deprecated | text | NO | | NULL | | -| about | Deprecated | text | NO | | NULL | | +| about | Profile description | text | NO | | | | | summary | Deprecated | varchar(255) | NO | | | | | music | Deprecated | text | NO | | NULL | | | book | Deprecated | text | NO | | NULL | | diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 87cfdd11c6..e54d266e39 100755 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -34,7 +34,7 @@ use Friendica\Database\DBA; if (!defined('DB_UPDATE_VERSION')) { - define('DB_UPDATE_VERSION', 1332); + define('DB_UPDATE_VERSION', 1333); } return [ @@ -1088,7 +1088,7 @@ return [ "is-default" => ["type" => "boolean", "comment" => "Deprecated"], "hide-friends" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Hide friend list from viewers of this profile"], "name" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""], - "pdesc" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Title or description"], + "pdesc" => ["type" => "varchar(255)", "comment" => "Deprecated"], "dob" => ["type" => "varchar(32)", "not null" => "1", "default" => "0000-00-00", "comment" => "Day of birth"], "address" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""], "locality" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""], @@ -1107,7 +1107,7 @@ return [ "prv_keywords" => ["type" => "text", "comment" => ""], "likes" => ["type" => "text", "comment" => "Deprecated"], "dislikes" => ["type" => "text", "comment" => "Deprecated"], - "about" => ["type" => "text", "comment" => "Deprecated"], + "about" => ["type" => "text", "comment" => "Profile description"], "summary" => ["type" => "varchar(255)", "comment" => "Deprecated"], "music" => ["type" => "text", "comment" => "Deprecated"], "book" => ["type" => "text", "comment" => "Deprecated"],