Skip to content

Commit 877e4f0

Browse files
committed
HHH-19701 add 'if exists' to 'drop sequence' on Maria
1 parent 9cb1851 commit 877e4f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ default String[] getDropSequenceStrings(String sequenceName) throws MappingExcep
226226
* @throws MappingException If sequences are not supported.
227227
*/
228228
default String getDropSequenceString(String sequenceName) throws MappingException {
229-
return "drop sequence " + sequenceName;
229+
return "drop sequence if exists " + sequenceName;
230230
}
231231

232232
/**

0 commit comments

Comments
 (0)