summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-06-02 02:10:04 +0200
committermkanat%bugzilla.org <>2009-06-02 02:10:04 +0200
commit34e54028237fed966388a7d3b4f7e7321a92a2e4 (patch)
treea87b4034b3c16074908c008d4a3abe6402f79631 /checksetup.pl
parent1a9927c0c012c6c2dcc82552d0e397c992599754 (diff)
downloadbugzilla-34e54028237fed966388a7d3b4f7e7321a92a2e4.tar.gz
bugzilla-34e54028237fed966388a7d3b4f7e7321a92a2e4.tar.xz
Bug 495783: Create the default Classification before setting up foreign keys, so that the products.classification_id -> classifications.id FK doesn't fail during upgrades that add the classification_id column.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 53a709ebf..0f410ed7d 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -217,7 +217,7 @@ Bugzilla::Install::reset_password($switch{'reset-password'})
if $switch{'reset-password'};
###########################################################################
-# Create default Product and Classification
+# Create default Product
###########################################################################
Bugzilla::Install::create_default_product();
@@ -406,6 +406,10 @@ from one version of Bugzilla to another.
The code for this is in L<Bugzilla::Install::DB/update_table_definitions>.
+This includes creating the default Classification (using
+L<Bugzilla::Install/create_default_classification>) and setting up all
+the foreign keys for all tables, using L<Bugzilla::DB/bz_setup_foreign_keys>.
+
=item 14
Creates the system groups--the ones like C<editbugs>, C<admin>, and so on.
@@ -426,7 +430,7 @@ the C<--make-admin> switch.
=item 17
-Creates the default Classification, Product, and Component, using
+Creates the default Product and Component, using
L<Bugzilla::Install/create_default_product>.
=back