Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
564065d5
Commit
564065d5
authored
May 08, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 414292: [Oracle] Change series.query back to MEDIUMTEXT
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat
parent
183719ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
Schema.pm
Bugzilla/DB/Schema.pm
+1
-1
DB.pm
Bugzilla/Install/DB.pm
+8
-4
No files found.
Bugzilla/DB/Schema.pm
View file @
564065d5
...
...
@@ -1089,7 +1089,7 @@ use constant ABSTRACT_SCHEMA => {
name
=>
{
TYPE
=>
'varchar(64)'
,
NOTNULL
=>
1
},
frequency
=>
{
TYPE
=>
'INT2'
,
NOTNULL
=>
1
},
last_viewed
=>
{
TYPE
=>
'DATETIME'
},
query
=>
{
TYPE
=>
'
LONG
TEXT'
,
NOTNULL
=>
1
},
query
=>
{
TYPE
=>
'
MEDIUM
TEXT'
,
NOTNULL
=>
1
},
is_public
=>
{
TYPE
=>
'BOOLEAN'
,
NOTNULL
=>
1
,
DEFAULT
=>
'FALSE'
},
],
...
...
Bugzilla/Install/DB.pm
View file @
564065d5
...
...
@@ -522,6 +522,10 @@ sub update_table_definitions {
$dbh
->
bz_drop_index
(
'longdescs'
,
'longdescs_thetext_idx'
);
_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 #
################################################################
...
...
@@ -2935,7 +2939,8 @@ sub _fix_attachment_modification_date {
sub
_change_text_types
{
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
(
'fielddefs'
,
'description'
,
255
,
'id'
);
_check_content_length
(
'attachments'
,
'description'
,
255
,
'attach_id'
);
...
...
@@ -2953,14 +2958,13 @@ sub _change_text_types {
{
TYPE
=>
'MEDIUMTEXT'
,
NOTNULL
=>
1
},
''
);
$dbh
->
bz_alter_column
(
'fielddefs'
,
'description'
,
{
TYPE
=>
'TINYTEXT'
,
NOTNULL
=>
1
});
$dbh
->
bz_alter_column
(
'namedqueries'
,
'query'
,
{
TYPE
=>
'LONGTEXT'
,
NOTNULL
=>
1
});
$dbh
->
bz_alter_column
(
'groups'
,
'description'
,
{
TYPE
=>
'MEDIUMTEXT'
,
NOTNULL
=>
1
});
$dbh
->
bz_alter_column
(
'quips'
,
'quip'
,
{
TYPE
=>
'MEDIUMTEXT'
,
NOTNULL
=>
1
});
$dbh
->
bz_alter_column
(
'
s
eries'
,
'query'
,
$dbh
->
bz_alter_column
(
'
namedqu
eries'
,
'query'
,
{
TYPE
=>
'LONGTEXT'
,
NOTNULL
=>
1
});
}
sub
_check_content_length
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment