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
830a47d2
Commit
830a47d2
authored
Feb 21, 2001
by
cyeh%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for 61648: SQL inserts do not match constraints
patch submitted by kevin.brannen@springbow.com (Kevin Brannen) change checksetup inserts to match database constraints.
parent
05396caa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
checksetup.pl
checksetup.pl
+11
-10
No files found.
checksetup.pl
View file @
830a47d2
...
@@ -820,10 +820,10 @@ $table{profiles} =
...
@@ -820,10 +820,10 @@ $table{profiles} =
realname varchar(255),
realname varchar(255),
groupset bigint not null,
groupset bigint not null,
emailnotification enum("ExcludeSelfChanges", "CConly", "All") not null default "ExcludeSelfChanges",
emailnotification enum("ExcludeSelfChanges", "CConly", "All") not null default "ExcludeSelfChanges",
disabledtext mediumtext
not null
,
disabledtext mediumtext,
newemailtech tinyint not null,
newemailtech tinyint not null
default 1
,
mybugslink tinyint not null default 1,
mybugslink tinyint not null default 1,
blessgroupset bigint not null,
blessgroupset bigint not null
default 0
,
emailflags mediumtext,
emailflags mediumtext,
...
@@ -1001,9 +1001,9 @@ sub AddGroup {
...
@@ -1001,9 +1001,9 @@ sub AddGroup {
print
"Adding group $name ...\n"
;
print
"Adding group $name ...\n"
;
$sth
=
$dbh
->
prepare
(
'INSERT INTO groups
$sth
=
$dbh
->
prepare
(
'INSERT INTO groups
(bit, name, description, userregexp)
(bit, name, description, userregexp
, isbuggroup
)
VALUES (?, ?, ?, ?)'
);
VALUES (?, ?, ?, ?
, ?
)'
);
$sth
->
execute
(
$bit
,
$name
,
$desc
,
$userregexp
);
$sth
->
execute
(
$bit
,
$name
,
$desc
,
$userregexp
,
0
);
return
$bit
;
return
$bit
;
}
}
...
@@ -1044,16 +1044,17 @@ my $sth = $dbh->prepare("SELECT product FROM products");
...
@@ -1044,16 +1044,17 @@ my $sth = $dbh->prepare("SELECT product FROM products");
$sth
->
execute
;
$sth
->
execute
;
unless
(
$sth
->
rows
)
{
unless
(
$sth
->
rows
)
{
print
"Creating initial dummy product 'TestProduct' ...\n"
;
print
"Creating initial dummy product 'TestProduct' ...\n"
;
$dbh
->
do
(
'INSERT INTO products(product, description) VALUES ("TestProduct",
$dbh
->
do
(
'INSERT INTO products(product, description
, milestoneurl, disallownew, votesperuser, votestoconfirm
) VALUES ("TestProduct",
"This is a test product. This ought to be blown away and '
.
"This is a test product. This ought to be blown away and '
.
'replaced with real stuff in a finished installation of '
.
'replaced with real stuff in a finished installation of '
.
'bugzilla.")'
);
'bugzilla."
, "", 0, 0, 0
)'
);
$dbh
->
do
(
'INSERT INTO versions (value, program) VALUES ("other", "TestProduct")'
);
$dbh
->
do
(
'INSERT INTO versions (value, program) VALUES ("other", "TestProduct")'
);
$dbh
->
do
(
'INSERT INTO components (value, program, description) VALUES ('
.
$dbh
->
do
(
'INSERT INTO components (value, program, description, initialowner, initialqacontact)
VALUES ('
.
'"TestComponent", "TestProduct", '
.
'"TestComponent", "TestProduct", '
.
'"This is a test component in the test product database. '
.
'"This is a test component in the test product database. '
.
'This ought to be blown away and replaced with real stuff in '
.
'This ought to be blown away and replaced with real stuff in '
.
'a finished installation of bugzilla.")'
);
'a finished installation of bugzilla."
, "", ""
)'
);
$dbh
->
do
(
'INSERT INTO milestones (product, value) VALUES ("TestProduct","---")'
);
$dbh
->
do
(
'INSERT INTO milestones (product, value) VALUES ("TestProduct","---")'
);
}
}
...
...
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