summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-06-21 10:38:57 +0200
committermkanat%kerio.com <>2005-06-21 10:38:57 +0200
commit5609425d739829a7c26840b021e3a89dceb34005 (patch)
tree0a6dbcdf0d42051ccb5dfd43a0e9180f8a412bbb /checksetup.pl
parent7f9a55a1573e31ca4189fb9a379960ede2200f4b (diff)
downloadbugzilla-5609425d739829a7c26840b021e3a89dceb34005.tar.gz
bugzilla-5609425d739829a7c26840b021e3a89dceb34005.tar.xz
Bug 296039: [PostgreSQL] Cannot create a new product
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wurblzap, a=myk
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 57981a639..4cfc096e1 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -3960,6 +3960,11 @@ $dbh->bz_alter_column('versions', 'value',
$dbh->bz_add_index('versions', 'versions_product_id_idx',
{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