summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-11-15 14:43:33 -0800
committerIvan Kohler <ivan@freeside.biz>2013-11-15 14:43:33 -0800
commit803b2d18fd3d62da743281b973d9f057a387e9bb (patch)
treef3e95250af950bfbc03c078fc727ebe5607ad3d1
parent8fcb85e75b56d703cddc9569593c3468d6e49c7e (diff)
fix upgrade_journal upgrade (ironic), RT#26078
-rwxr-xr-xFS/bin/freeside-upgrade7
1 files changed, 7 insertions, 0 deletions
diff --git a/FS/bin/freeside-upgrade b/FS/bin/freeside-upgrade
index 7cacf105c..45d2709da 100755
--- a/FS/bin/freeside-upgrade
+++ b/FS/bin/freeside-upgrade
@@ -84,6 +84,13 @@ if ( dbdef->table('areacode') and
}
}
+if ( dbdef->table('upgrade_journal') ) {
+ push @bugfix, "SELECT SETVAL( 'upgrade_journal_upgradenum_seq',
+ ( SELECT MAX(upgradenum) FROM upgrade_journal )
+ )
+ ";
+}
+
if ( $DRY_RUN ) {
print
join(";\n", @bugfix ). ";\n";