Skip to content

Commit

Permalink
no longer need to alter sequence that does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed May 9, 2012
1 parent 2bac3d0 commit 51d00f9
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -47,11 +47,6 @@ protected boolean createTablesIfNecessary() {
platform.getSqlTemplate().update("alter table " + parameterService.getTablePrefix()
+ "_trigger_hist alter column trigger_hist_id restart with " + triggerHistId);
log.info("Resetting auto increment columns for {}", parameterService.getTablePrefix() + "_trigger_hist");
long outgoingBatchId = platform.getSqlTemplate().queryForLong("select max(batch_id) from "
+ parameterService.getTablePrefix() + "_outgoing_batch") + 1;
platform.getSqlTemplate().update("alter table " + parameterService.getTablePrefix()
+ "_outgoing_batch alter column batch_id restart with " + outgoingBatchId);
log.info("Resetting auto increment columns for {}", parameterService.getTablePrefix() + "_outgoing_batch");
long dataId = platform.getSqlTemplate().queryForLong("select max(data_id) from " + parameterService.getTablePrefix()
+ "_data") + 1;
platform.getSqlTemplate().update("alter table " + parameterService.getTablePrefix()
Expand Down

0 comments on commit 51d00f9

Please sign in to comment.