-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ sub db_schema_abstract_schema { | |
$args->{'schema'}->{'flagtype_comments'} = { | ||
FIELDS => [ | ||
type_id => { | ||
TYPE => 'INT2', | ||
TYPE => 'INT3', | ||
NOTNULL => 1, | ||
REFERENCES => {TABLE => 'flagtypes', COLUMN => 'id', DELETE => 'CASCADE'} | ||
}, | ||
|
@@ -53,6 +53,17 @@ sub db_schema_abstract_schema { | |
}; | ||
} | ||
|
||
sub install_update_db { | ||
# Bug 1634711 - [email protected] | ||
my $def = $dbh->bz_column_info('flagtype_comments', 'type_id'); | ||
if ($def->{TYPE} eq 'INT2') { | ||
warn "Dropping foreign keys on flagtype_comments\n"; | ||
$dbh->bz_drop_related_fks('flagtype_comments', 'type_id'); | ||
$def->{TYPE} = 'INT3'; | ||
$dbh->bz_alter_column('flagtype_comments', 'type_id', $def); | ||
} | ||
} | ||
|
||
############# | ||
# Templates # | ||
############# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -954,6 +954,15 @@ sub install_update_db { | |
|
||
# Bug 1588221 - [email protected] | ||
$dbh->bz_alter_column('flag_state_activity', 'attachment_id', {TYPE => 'INT5'}); | ||
|
||
# Bug 1634711 - [email protected] | ||
my $def = $dbh->bz_column_info('flag_state_activity', 'type_id'); | ||
if ($def->{TYPE} eq 'INT2') { | ||
warn "Dropping foreign keys on flag_state_activity\n"; | ||
$dbh->bz_drop_related_fks('flag_state_activity', 'type_id'); | ||
$def->{TYPE} = 'INT3'; | ||
$dbh->bz_alter_column('flag_state_activity', 'type_id', $def); | ||
} | ||
} | ||
|
||
sub install_filesystem { | ||
|