[Database] Structure version 1332

- Deprecated several fields in profile table
This commit is contained in:
Hypolite Petovan 2020-01-19 09:43:15 -05:00
parent 64c05f2280
commit 2171cc8a32
2 changed files with 50 additions and 50 deletions

View File

@ -1,6 +1,6 @@
-- ------------------------------------------
-- Friendica 2020.03-dev (Dalmatian Bellflower)
-- DB_UPDATE_VERSION 1331
-- DB_UPDATE_VERSION 1332
-- ------------------------------------------
@ -233,7 +233,7 @@ CREATE TABLE IF NOT EXISTS `contact` (
`reason` text COMMENT '',
`closeness` tinyint unsigned NOT NULL DEFAULT 99 COMMENT '',
`info` mediumtext COMMENT '',
`profile-id` int unsigned NOT NULL DEFAULT 0 COMMENT '',
`profile-id` int unsigned COMMENT 'Deprecated',
`bdyear` varchar(4) NOT NULL DEFAULT '' COMMENT '',
`bd` date NOT NULL DEFAULT '0001-01-01' COMMENT '',
`notify_new_posts` boolean NOT NULL DEFAULT '0' COMMENT '',
@ -995,8 +995,8 @@ CREATE TABLE IF NOT EXISTS `process` (
CREATE TABLE IF NOT EXISTS `profile` (
`id` int unsigned NOT NULL auto_increment COMMENT 'sequential ID',
`uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'Owner User id',
`profile-name` varchar(255) NOT NULL DEFAULT '' COMMENT 'Name of the profile',
`is-default` boolean NOT NULL DEFAULT '0' COMMENT 'Mark this profile as default profile',
`profile-name` varchar(255) COMMENT 'Deprecated',
`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',
@ -1006,29 +1006,29 @@ CREATE TABLE IF NOT EXISTS `profile` (
`region` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`postal-code` varchar(32) NOT NULL DEFAULT '' COMMENT '',
`country-name` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`hometown` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`gender` varchar(32) NOT NULL DEFAULT '' COMMENT '',
`marital` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`with` text COMMENT '',
`howlong` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
`sexual` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`politic` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`religion` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`hometown` varchar(255) COMMENT 'Deprecated',
`gender` varchar(32) COMMENT 'Deprecated',
`marital` varchar(255) COMMENT 'Deprecated',
`with` text COMMENT 'Deprecated',
`howlong` datetime COMMENT 'Deprecated',
`sexual` varchar(255) COMMENT 'Deprecated',
`politic` varchar(255) COMMENT 'Deprecated',
`religion` varchar(255) COMMENT 'Deprecated',
`pub_keywords` text COMMENT '',
`prv_keywords` text COMMENT '',
`likes` text COMMENT '',
`dislikes` text COMMENT '',
`about` text COMMENT '',
`summary` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`music` text COMMENT '',
`book` text COMMENT '',
`tv` text COMMENT '',
`film` text COMMENT '',
`interest` text COMMENT '',
`romance` text COMMENT '',
`work` text COMMENT '',
`education` text COMMENT '',
`contact` text COMMENT '',
`likes` text COMMENT 'Deprecated',
`dislikes` text COMMENT 'Deprecated',
`about` text COMMENT 'Deprecated',
`summary` varchar(255) COMMENT 'Deprecated',
`music` text COMMENT 'Deprecated',
`book` text COMMENT 'Deprecated',
`tv` text COMMENT 'Deprecated',
`film` text COMMENT 'Deprecated',
`interest` text COMMENT 'Deprecated',
`romance` text COMMENT 'Deprecated',
`work` text COMMENT 'Deprecated',
`education` text COMMENT 'Deprecated',
`contact` text COMMENT 'Deprecated',
`homepage` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`xmpp` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`photo` varchar(255) NOT NULL DEFAULT '' COMMENT '',

View File

@ -34,7 +34,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1331);
define('DB_UPDATE_VERSION', 1332);
}
return [
@ -277,7 +277,7 @@ return [
"reason" => ["type" => "text", "comment" => ""],
"closeness" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "99", "comment" => ""],
"info" => ["type" => "mediumtext", "comment" => ""],
"profile-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "comment" => ""],
"profile-id" => ["type" => "int unsigned", "comment" => "Deprecated"],
"bdyear" => ["type" => "varchar(4)", "not null" => "1", "default" => "", "comment" => ""],
"bd" => ["type" => "date", "not null" => "1", "default" => DBA::NULL_DATE, "comment" => ""],
"notify_new_posts" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
@ -1084,8 +1084,8 @@ return [
"fields" => [
"id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"],
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "default" => "0", "relation" => ["user" => "uid"], "comment" => "Owner User id"],
"profile-name" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Name of the profile"],
"is-default" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Mark this profile as default profile"],
"profile-name" => ["type" => "varchar(255)", "comment" => "Deprecated"],
"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"],
@ -1095,29 +1095,29 @@ return [
"region" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"postal-code" => ["type" => "varchar(32)", "not null" => "1", "default" => "", "comment" => ""],
"country-name" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"hometown" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"gender" => ["type" => "varchar(32)", "not null" => "1", "default" => "", "comment" => ""],
"marital" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"with" => ["type" => "text", "comment" => ""],
"howlong" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
"sexual" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"politic" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"religion" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"hometown" => ["type" => "varchar(255)", "comment" => "Deprecated"],
"gender" => ["type" => "varchar(32)", "comment" => "Deprecated"],
"marital" => ["type" => "varchar(255)", "comment" => "Deprecated"],
"with" => ["type" => "text", "comment" => "Deprecated"],
"howlong" => ["type" => "datetime", "comment" => "Deprecated"],
"sexual" => ["type" => "varchar(255)", "comment" => "Deprecated"],
"politic" => ["type" => "varchar(255)", "comment" => "Deprecated"],
"religion" => ["type" => "varchar(255)", "comment" => "Deprecated"],
"pub_keywords" => ["type" => "text", "comment" => ""],
"prv_keywords" => ["type" => "text", "comment" => ""],
"likes" => ["type" => "text", "comment" => ""],
"dislikes" => ["type" => "text", "comment" => ""],
"about" => ["type" => "text", "comment" => ""],
"summary" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"music" => ["type" => "text", "comment" => ""],
"book" => ["type" => "text", "comment" => ""],
"tv" => ["type" => "text", "comment" => ""],
"film" => ["type" => "text", "comment" => ""],
"interest" => ["type" => "text", "comment" => ""],
"romance" => ["type" => "text", "comment" => ""],
"work" => ["type" => "text", "comment" => ""],
"education" => ["type" => "text", "comment" => ""],
"contact" => ["type" => "text", "comment" => ""],
"likes" => ["type" => "text", "comment" => "Deprecated"],
"dislikes" => ["type" => "text", "comment" => "Deprecated"],
"about" => ["type" => "text", "comment" => "Deprecated"],
"summary" => ["type" => "varchar(255)", "comment" => "Deprecated"],
"music" => ["type" => "text", "comment" => "Deprecated"],
"book" => ["type" => "text", "comment" => "Deprecated"],
"tv" => ["type" => "text", "comment" => "Deprecated"],
"film" => ["type" => "text", "comment" => "Deprecated"],
"interest" => ["type" => "text", "comment" => "Deprecated"],
"romance" => ["type" => "text", "comment" => "Deprecated"],
"work" => ["type" => "text", "comment" => "Deprecated"],
"education" => ["type" => "text", "comment" => "Deprecated"],
"contact" => ["type" => "text", "comment" => "Deprecated"],
"homepage" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"xmpp" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"photo" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],