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
0fa7022e
Commit
0fa7022e
authored
Jun 21, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 573454: Make the products.description field be NOT NULL in the
database r=timello, a=mkanat
parent
5feaa134
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Schema.pm
Bugzilla/DB/Schema.pm
+1
-1
DB.pm
Bugzilla/Install/DB.pm
+4
-0
No files found.
Bugzilla/DB/Schema.pm
View file @
0fa7022e
...
...
@@ -1217,7 +1217,7 @@ use constant ABSTRACT_SCHEMA => {
REFERENCES
=>
{
TABLE
=>
'classifications'
,
COLUMN
=>
'id'
,
DELETE
=>
'CASCADE'
}},
description
=>
{
TYPE
=>
'MEDIUMTEXT'
},
description
=>
{
TYPE
=>
'MEDIUMTEXT'
,
NOTNULL
=>
1
},
isactive
=>
{
TYPE
=>
'BOOLEAN'
,
NOTNULL
=>
1
,
DEFAULT
=>
1
},
defaultmilestone
=>
{
TYPE
=>
'varchar(20)'
,
...
...
Bugzilla/Install/DB.pm
View file @
0fa7022e
...
...
@@ -616,10 +616,14 @@ sub update_table_definitions {
$dbh
->
bz_alter_column
(
'group_control_map'
,
'othercontrol'
,
{
TYPE
=>
'INT1'
,
NOTNULL
=>
1
,
DEFAULT
=>
CONTROLMAPNA
});
# Add NOT NULL to some columns that need it, and DEFAULT to
# attachments.ispatch.
$dbh
->
bz_alter_column
(
'attachments'
,
'ispatch'
,
{
TYPE
=>
'BOOLEAN'
,
NOTNULL
=>
1
,
DEFAULT
=>
'FALSE'
});
$dbh
->
bz_alter_column
(
'keyworddefs'
,
'description'
,
{
TYPE
=>
'MEDIUMTEXT'
,
NOTNULL
=>
1
},
''
);
$dbh
->
bz_alter_column
(
'products'
,
'description'
,
{
TYPE
=>
'MEDIUMTEXT'
,
NOTNULL
=>
1
},
''
);
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
...
...
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