Skip to content

Commit 045a83a

Browse files
committed
HHH-19701 add 'if exists' to 'drop sequence' on Maria
second try - thanks @WolfgangHG
1 parent 149865b commit 045a83a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/sequence/MariaDBSequenceSupport.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public String getSelectSequencePreviousValString(String sequenceName) throws Map
3535
return "previous value for " + sequenceName;
3636
}
3737

38+
@Override
39+
public String getDropSequenceString(String sequenceName) throws MappingException {
40+
return "drop sequence if exists " + sequenceName;
41+
}
42+
3843
@Override
3944
public boolean sometimesNeedsStartingValue() {
4045
return true;

0 commit comments

Comments
 (0)