Skip to content

Commit

Permalink
New activations won't have existing sequences.
Browse files Browse the repository at this point in the history
  • Loading branch information
sosguthorpe committed Apr 29, 2020
1 parent dea8650 commit 293e54d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ databaseChangeLog = {
results = sql.rows( "SELECT setval('${database.defaultSchemaName}.hibernate_sequence', max(id)) FROM ${database.defaultSchemaName}.custom_property;".toString() )
} catch ( Exception ex ) { /* Allow to silently fail. */ }

long max = results[0][0]
confirm "Updated counter to ${max}"
Long max = results[0][0]
if (max != null) confirm "Updated counter to ${max}"
}
}
}
Expand Down

0 comments on commit 293e54d

Please sign in to comment.