diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-06-06 15:21:05 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-06-06 15:21:05 -0700 |
commit | dca8165e63b41dbf72a12a171ccfda2b17a420ca (patch) | |
tree | 0a053a05303c32321d3519c52f4bc3ceb36e55da /FS/bin | |
parent | 290c3c20dfc9827efe4ead0373468ef2de5379a1 (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-x | FS/bin/freeside-upgrade | 11 |
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 ) + # "; } } |