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
66b4c871
Commit
66b4c871
authored
Mar 12, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 285690: bugs.status_whiteboard, bugs.votes, and bugs.keywords need defaults in the Schema
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=Tomas.Kopal, a=myk
parent
9ddbd40c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
Schema.pm
Bugzilla/DB/Schema.pm
+6
-3
checksetup.pl
checksetup.pl
+6
-0
No files found.
Bugzilla/DB/Schema.pm
View file @
66b4c871
...
...
@@ -146,11 +146,14 @@ use constant ABSTRACT_SCHEMA => {
target_milestone
=>
{
TYPE
=>
'varchar(20)'
,
NOTNULL
=>
1
,
DEFAULT
=>
"'---'"
},
qa_contact
=>
{
TYPE
=>
'INT3'
,
NOTNULL
=>
1
},
status_whiteboard
=>
{
TYPE
=>
'MEDIUMTEXT'
,
NOTNULL
=>
1
},
votes
=>
{
TYPE
=>
'INT3'
,
NOTNULL
=>
1
},
status_whiteboard
=>
{
TYPE
=>
'MEDIUMTEXT'
,
NOTNULL
=>
1
,
DEFAULT
=>
"''"
},
votes
=>
{
TYPE
=>
'INT3'
,
NOTNULL
=>
1
,
DEFAULT
=>
'0'
},
# Note: keywords field is only a cache; the real data
# comes from the keywords table
keywords
=>
{
TYPE
=>
'MEDIUMTEXT'
,
NOTNULL
=>
1
},
keywords
=>
{
TYPE
=>
'MEDIUMTEXT'
,
NOTNULL
=>
1
,
DEFAULT
=>
"''"
},
lastdiffed
=>
{
TYPE
=>
'DATETIME'
,
NOTNULL
=>
1
},
everconfirmed
=>
{
TYPE
=>
'BOOLEAN'
,
NOTNULL
=>
1
},
reporter_accessible
=>
{
TYPE
=>
'BOOLEAN'
,
...
...
checksetup.pl
View file @
66b4c871
...
...
@@ -3649,6 +3649,12 @@ if (!$dbh->bz_get_field_def('fielddefs', 'obsolete')) {
}
$dbh
->
bz_change_field_type
(
'bugs'
,
'status_whiteboard'
,
q{mediumtext not null default ''}
);
$dbh
->
bz_change_field_type
(
'bugs'
,
'keywords'
,
q{mediumtext not null default ''}
);
$dbh
->
bz_change_field_type
(
'bugs'
,
'votes'
,
'mediumint not null default 0'
);
# If you had to change the --TABLE-- definition in any way, then add your
# differential change code *** A B O V E *** this comment.
#
...
...
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