Skip to content

Commit

Permalink
Changed the type of value column of vars table from VARCHAR(128) …
Browse files Browse the repository at this point in the history
…to TEXT (bug #727)
  • Loading branch information
mystralkk committed Jan 8, 2017
1 parent 1a650a6 commit 0342cf4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql/mysql_tableanddata.php
Expand Up @@ -567,7 +567,7 @@
$_SQL[] = "
CREATE TABLE {$_TABLES['vars']} (
name varchar(20) NOT NULL default '',
value varchar(128) default NULL,
value TEXT default NULL,
PRIMARY KEY (name)
) ENGINE=MyISAM
";
Expand Down
2 changes: 1 addition & 1 deletion sql/pgsql_tableanddata.php
Expand Up @@ -566,7 +566,7 @@
$_SQL[] = "
CREATE TABLE {$_TABLES['vars']} (
name varchar(20) NOT NULL default '',
value varchar(128) default NULL,
value TEXT default NULL,
PRIMARY KEY (name)
)
";
Expand Down
3 changes: 3 additions & 0 deletions sql/updates/mysql_2.1.1_to_2.1.2.php
Expand Up @@ -14,6 +14,9 @@
// Change Url from 255 to 250 since the field has too many bytes for tables with a utf8mb4 collation
$_SQL[] = "ALTER TABLE {$_TABLES['trackback']} CHANGE `url` `url` VARCHAR(250) DEFAULT NULL";

// Change the type of `value' column of `vars` table from VARCHAR(128) to TEXT
$_SQL = "ALTER TABLE {$_TABLES['vars']} CHANGE `value` `value` text NULL AFTER `name`";

/**
* Upgrade Messages
*/
Expand Down
4 changes: 4 additions & 0 deletions sql/updates/pgsql_2.1.1_to_2.1.2.php
Expand Up @@ -11,6 +11,10 @@
$_SQL[] = "ALTER TABLE {$_TABLES['syndication']} CHANGE `topic` `topic` VARCHAR(75) NOT NULL default '::all'";
$_SQL[] = "ALTER TABLE {$_TABLES['syndication']} CHANGE `header_tid` `header_tid` VARCHAR(75) NOT NULL default 'none'";

// Change the type of `value' column of `vars` table from VARCHAR(128) to TEXT
$_SQL = "ALTER TABLE {$_TABLES['vars']} CHANGE `value` `value` text NULL AFTER `name`";
$_SQL = "ALTER TABLE {$_TABLES['vars']} ALTER value TYPE text, ALTER value SET DEFAULT NULL";

/**
* Upgrade Messages
*/
Expand Down

0 comments on commit 0342cf4

Please sign in to comment.