Commit 564065d5 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 414292: [Oracle] Change series.query back to MEDIUMTEXT

Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat
parent 183719ad
...@@ -1089,7 +1089,7 @@ use constant ABSTRACT_SCHEMA => { ...@@ -1089,7 +1089,7 @@ use constant ABSTRACT_SCHEMA => {
name => {TYPE => 'varchar(64)', NOTNULL => 1}, name => {TYPE => 'varchar(64)', NOTNULL => 1},
frequency => {TYPE => 'INT2', NOTNULL => 1}, frequency => {TYPE => 'INT2', NOTNULL => 1},
last_viewed => {TYPE => 'DATETIME'}, last_viewed => {TYPE => 'DATETIME'},
query => {TYPE => 'LONGTEXT', NOTNULL => 1}, query => {TYPE => 'MEDIUMTEXT', NOTNULL => 1},
is_public => {TYPE => 'BOOLEAN', NOTNULL => 1, is_public => {TYPE => 'BOOLEAN', NOTNULL => 1,
DEFAULT => 'FALSE'}, DEFAULT => 'FALSE'},
], ],
......
...@@ -522,6 +522,10 @@ sub update_table_definitions { ...@@ -522,6 +522,10 @@ sub update_table_definitions {
$dbh->bz_drop_index('longdescs', 'longdescs_thetext_idx'); $dbh->bz_drop_index('longdescs', 'longdescs_thetext_idx');
_populate_bugs_fulltext(); _populate_bugs_fulltext();
# 2008-01-18 xiaoou.wu@oracle.com - Bug 414292
$dbh->bz_alter_column('series', 'query',
{ TYPE => 'MEDIUMTEXT', NOTNULL => 1 });
################################################################ ################################################################
# New --TABLE-- changes should go *** A B O V E *** this point # # New --TABLE-- changes should go *** A B O V E *** this point #
################################################################ ################################################################
...@@ -2935,7 +2939,8 @@ sub _fix_attachment_modification_date { ...@@ -2935,7 +2939,8 @@ sub _fix_attachment_modification_date {
sub _change_text_types { sub _change_text_types {
my $dbh = Bugzilla->dbh; my $dbh = Bugzilla->dbh;
return if $dbh->bz_column_info('series', 'query')->{TYPE} eq 'LONGTEXT'; return if
$dbh->bz_column_info('namedqueries', 'query')->{TYPE} eq 'LONGTEXT';
_check_content_length('attachments', 'mimetype', 255, 'attach_id'); _check_content_length('attachments', 'mimetype', 255, 'attach_id');
_check_content_length('fielddefs', 'description', 255, 'id'); _check_content_length('fielddefs', 'description', 255, 'id');
_check_content_length('attachments', 'description', 255, 'attach_id'); _check_content_length('attachments', 'description', 255, 'attach_id');
...@@ -2953,14 +2958,13 @@ sub _change_text_types { ...@@ -2953,14 +2958,13 @@ sub _change_text_types {
{ TYPE => 'MEDIUMTEXT', NOTNULL => 1 }, ''); { TYPE => 'MEDIUMTEXT', NOTNULL => 1 }, '');
$dbh->bz_alter_column('fielddefs', 'description', $dbh->bz_alter_column('fielddefs', 'description',
{ TYPE => 'TINYTEXT', NOTNULL => 1 }); { TYPE => 'TINYTEXT', NOTNULL => 1 });
$dbh->bz_alter_column('namedqueries', 'query',
{ TYPE => 'LONGTEXT', NOTNULL => 1 });
$dbh->bz_alter_column('groups', 'description', $dbh->bz_alter_column('groups', 'description',
{ TYPE => 'MEDIUMTEXT', NOTNULL => 1 }); { TYPE => 'MEDIUMTEXT', NOTNULL => 1 });
$dbh->bz_alter_column('quips', 'quip', $dbh->bz_alter_column('quips', 'quip',
{ TYPE => 'MEDIUMTEXT', NOTNULL => 1 }); { TYPE => 'MEDIUMTEXT', NOTNULL => 1 });
$dbh->bz_alter_column('series', 'query', $dbh->bz_alter_column('namedqueries', 'query',
{ TYPE => 'LONGTEXT', NOTNULL => 1 }); { TYPE => 'LONGTEXT', NOTNULL => 1 });
} }
sub _check_content_length { sub _check_content_length {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment