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
5609425d
Commit
5609425d
authored
Jun 21, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 296039: [PostgreSQL] Cannot create a new product
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wurblzap, a=myk
parent
7f9a55a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Schema.pm
Bugzilla/DB/Schema.pm
+2
-1
checksetup.pl
checksetup.pl
+5
-0
No files found.
Bugzilla/DB/Schema.pm
View file @
5609425d
...
@@ -469,7 +469,8 @@ use constant ABSTRACT_SCHEMA => {
...
@@ -469,7 +469,8 @@ use constant ABSTRACT_SCHEMA => {
FIELDS
=>
[
FIELDS
=>
[
product_id
=>
{
TYPE
=>
'INT2'
,
NOTNULL
=>
1
},
product_id
=>
{
TYPE
=>
'INT2'
,
NOTNULL
=>
1
},
value
=>
{
TYPE
=>
'varchar(20)'
,
NOTNULL
=>
1
},
value
=>
{
TYPE
=>
'varchar(20)'
,
NOTNULL
=>
1
},
sortkey
=>
{
TYPE
=>
'INT2'
,
NOTNULL
=>
1
},
sortkey
=>
{
TYPE
=>
'INT2'
,
NOTNULL
=>
1
,
DEFAULT
=>
0
},
],
],
INDEXES
=>
[
INDEXES
=>
[
milestones_product_id_idx
=>
{
FIELDS
=>
[
qw(product_id value)
],
milestones_product_id_idx
=>
{
FIELDS
=>
[
qw(product_id value)
],
...
...
checksetup.pl
View file @
5609425d
...
@@ -3960,6 +3960,11 @@ $dbh->bz_alter_column('versions', 'value',
...
@@ -3960,6 +3960,11 @@ $dbh->bz_alter_column('versions', 'value',
$dbh
->
bz_add_index
(
'versions'
,
'versions_product_id_idx'
,
$dbh
->
bz_add_index
(
'versions'
,
'versions_product_id_idx'
,
{
TYPE
=>
'UNIQUE'
,
FIELDS
=>
[
qw(product_id value)
]});
{
TYPE
=>
'UNIQUE'
,
FIELDS
=>
[
qw(product_id value)
]});
# Milestone sortkeys get a default just like all other sortkeys.
if
(
!
exists
$dbh
->
bz_column_info
(
'milestones'
,
'sortkey'
)
->
{
DEFAULT
})
{
$dbh
->
bz_alter_column
(
'milestones'
,
'sortkey'
,
{
TYPE
=>
'INT2'
,
NOTNULL
=>
1
,
DEFAULT
=>
0
});
}
# If you had to change the --TABLE-- definition in any way, then add your
# If you had to change the --TABLE-- definition in any way, then add your
...
...
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