summaryrefslogtreecommitdiff
path: root/FS/bin
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-06-06 15:21:05 -0700
committerIvan Kohler <ivan@freeside.biz>2014-06-06 15:21:05 -0700
commitdca8165e63b41dbf72a12a171ccfda2b17a420ca (patch)
tree0a053a05303c32321d3519c52f4bc3ceb36e55da /FS/bin
parent290c3c20dfc9827efe4ead0373468ef2de5379a1 (diff)
just don't attempt to auto-set upgrade_journal.upgradenum sequence, mysql is drain bramaged, RT#28895
Diffstat (limited to 'FS/bin')
-rwxr-xr-xFS/bin/freeside-upgrade11
1 files changed, 6 insertions, 5 deletions
diff --git a/FS/bin/freeside-upgrade b/FS/bin/freeside-upgrade
index e74abbfd0..bf99be639 100755
--- a/FS/bin/freeside-upgrade
+++ b/FS/bin/freeside-upgrade
@@ -100,11 +100,12 @@ if ( dbdef->table('upgrade_journal') ) {
( SELECT MAX(upgradenum) FROM upgrade_journal )
)
";
- } elsif ( driver_name =~ /^mysql/i ) {
- push @bugfix, "
- ALTER TABLE upgrade_journal AUTO_INCREMENT =
- ( ( SELECT MAX(upgradenum) FROM upgrade_journal ) + 1 )
- ";
+ #MySQL can't do this in a statement so have to do it manually
+ #} elsif ( driver_name =~ /^mysql/i ) {
+ # push @bugfix, "
+ # ALTER TABLE upgrade_journal AUTO_INCREMENT =
+ # ( ( SELECT MAX(upgradenum) FROM upgrade_journal ) + 1 )
+ # ";
}
}