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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
1b45faad
Commit
1b45faad
authored
Mar 07, 2001
by
dave%intrec.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 62949: Initial Test Component on new install did not have…
Fix for bug 62949: Initial Test Component on new install did not have initialOwner, which made sanitycheck complain.
parent
3cdefc41
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
27 deletions
+34
-27
checksetup.pl
checksetup.pl
+34
-27
No files found.
checksetup.pl
View file @
1b45faad
...
@@ -1038,32 +1038,6 @@ if (!GroupExists("canconfirm")) {
...
@@ -1038,32 +1038,6 @@ if (!GroupExists("canconfirm")) {
###########################################################################
###########################################################################
# Create initial test product if there are no products present.
###########################################################################
my
$sth
=
$dbh
->
prepare
(
"SELECT product FROM products"
);
$sth
->
execute
;
unless
(
$sth
->
rows
)
{
print
"Creating initial dummy product 'TestProduct' ...\n"
;
$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 '
.
'replaced with real stuff in a finished installation of '
.
'bugzilla.", "", 0, 0, 0)'
);
$dbh
->
do
(
'INSERT INTO versions (value, program) VALUES ("other", "TestProduct")'
);
$dbh
->
do
(
'INSERT INTO components (value, program, description, initialowner, initialqacontact)
VALUES ('
.
'"TestComponent", "TestProduct", '
.
'"This is a test component in the test product database. '
.
'This ought to be blown away and replaced with real stuff in '
.
'a finished installation of bugzilla.", "", "")'
);
$dbh
->
do
(
'INSERT INTO milestones (product, value) VALUES ("TestProduct","---")'
);
}
###########################################################################
# Populate the list of fields.
# Populate the list of fields.
###########################################################################
###########################################################################
...
@@ -1249,7 +1223,7 @@ sub bailout { # this is just in case we get interrupted while getting passwd
...
@@ -1249,7 +1223,7 @@ sub bailout { # this is just in case we get interrupted while getting passwd
exit
1
;
exit
1
;
}
}
$sth
=
$dbh
->
prepare
(
<<
_End_Of_SQL_
);
my
$sth
=
$dbh
->
prepare
(
<<
_End_Of_SQL_
);
SELECT
login_name
SELECT
login_name
FROM
profiles
FROM
profiles
WHERE
groupset
=
9223372036854775807
WHERE
groupset
=
9223372036854775807
...
@@ -1371,6 +1345,39 @@ _End_Of_SQL_
...
@@ -1371,6 +1345,39 @@ _End_Of_SQL_
}
}
###########################################################################
# Create initial test product if there are no products present.
###########################################################################
$sth
=
$dbh
->
prepare
(
<<
_End_Of_SQL_
);
SELECT
userid
FROM
profiles
WHERE
groupset
=
9223372036854775807
_End_Of_SQL_
$sth
->
execute
;
my
(
$adminuid
)
=
$sth
->
fetchrow_array
;
if
(
!
$adminuid
)
{
die
"No administator!"
}
# should never get here
$sth
=
$dbh
->
prepare
(
"SELECT product FROM products"
);
$sth
->
execute
;
unless
(
$sth
->
rows
)
{
print
"Creating initial dummy product 'TestProduct' ...\n"
;
$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 '
.
'replaced with real stuff in a finished installation of '
.
'bugzilla.", "", 0, 0, 0)'
);
$dbh
->
do
(
'INSERT INTO versions (value, program) VALUES ("other", "TestProduct")'
);
$dbh
->
do
(
"INSERT INTO components (value, program, description, initialowner, initialqacontact)
VALUES ("
.
"'TestComponent', 'TestProduct', "
.
"'This is a test component in the test product database. "
.
"This ought to be blown away and replaced with real stuff in "
.
"a finished installation of bugzilla.', $adminuid, 0)"
);
$dbh
->
do
(
'INSERT INTO milestones (product, value) VALUES ("TestProduct","---")'
);
}
###########################################################################
###########################################################################
# Update the tables to the current definition
# Update the tables to the current definition
...
...
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