Bug 21235: (QA follow-up) Remove table services_throttle
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 7 Sep 2018 15:28:22 +0000 (16:28 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 7 Sep 2018 15:51:48 +0000 (15:51 +0000)
Add the missing db update to nuke the services throttle from high orbit

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

installer/data/mysql/atomicupdate/bug_21235.perl [new file with mode: 0644]

diff --git a/installer/data/mysql/atomicupdate/bug_21235.perl b/installer/data/mysql/atomicupdate/bug_21235.perl
new file mode 100644 (file)
index 0000000..e7858cd
--- /dev/null
@@ -0,0 +1,8 @@
+$DBversion = 'XXX';  # will be replaced by the RM
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do( "DROP TABLE IF EXISTS services_throttle" );
+
+    # Always end with this (adjust the bug info)
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 21235: Remove table services_throttle)\n";
+}