summaryrefslogtreecommitdiffstats
path: root/extensions/BMO
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-11-18 05:42:18 +0100
committerByron Jones <glob@mozilla.com>2014-11-18 05:42:18 +0100
commit891689f1fdf09bf06c5e5dd944f6a6ae43f2cfd8 (patch)
tree54baeedd2645af5436493285b8d70ad690e942ee /extensions/BMO
parentecc04a6622cb9447eaca29be8a1c25947c1e1016 (diff)
downloadbugzilla-891689f1fdf09bf06c5e5dd944f6a6ae43f2cfd8.tar.gz
bugzilla-891689f1fdf09bf06c5e5dd944f6a6ae43f2cfd8.tar.xz
Bug 1098956: remove autoland support
Diffstat (limited to 'extensions/BMO')
-rw-r--r--extensions/BMO/Extension.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 1e24141b4..cd712d7d6 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -811,16 +811,20 @@ sub install_before_final_checks {
}
}
-# Migrate old is_active stuff to new patch (is in core in 4.2), The old column
-# name was 'is_active', the new one is 'isactive' (no underscore).
sub install_update_db {
my $dbh = Bugzilla->dbh;
-
+
+ # Migrate old is_active stuff to new patch (is in core in 4.2), The old
+ # column name was 'is_active', the new one is 'isactive' (no underscore).
if ($dbh->bz_column_info('milestones', 'is_active')) {
$dbh->do("UPDATE milestones SET isactive = 0 WHERE is_active = 0;");
$dbh->bz_drop_column('milestones', 'is_active');
$dbh->bz_drop_column('milestones', 'is_searchable');
}
+
+ # remove tables from the old TryAutoLand extension
+ $dbh->bz_drop_table('autoland_branches');
+ $dbh->bz_drop_table('autoland_attachments');
}
sub _last_closed_date {