Bug 304997: "Setting any 'other' op_sys to 'Other'" runs every time you run checksetup

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=joel, a=myk
This commit is contained in:
mkanat%kerio.com 2005-08-23 01:04:42 +00:00
Родитель f6f8514c0c
Коммит 316d94d882
1 изменённых файлов: 30 добавлений и 23 удалений

Просмотреть файл

@ -3966,6 +3966,12 @@ if (!exists $dbh->bz_column_info('milestones', 'sortkey')->{DEFAULT}) {
# when all bug fields have been correctly set.
$dbh->bz_alter_column('bugs', 'creation_ts', {TYPE => 'DATETIME'});
if (!exists $dbh->bz_column_info('whine_queries', 'title')->{DEFAULT}) {
# The below change actually has nothing to do with the whine_queries
# change, it just has to be contained within a schema change so that
# it doesn't run every time we run checksetup.
# Old Bugzillas have "other" as an OS choice, new ones have "Other"
# (capital O).
# XXX - This should be moved inside of a later schema change, once
@ -3990,6 +3996,7 @@ if (Param('defaultopsys') eq 'other') {
# works on PostgreSQL.
$dbh->bz_alter_column('whine_queries', 'title', {TYPE => 'varchar(128)',
NOTNULL => 1, DEFAULT => "''"});
}
# If you had to change the --TABLE-- definition in any way, then add your