Prevent error when dropping not existing sequences, creating existing users

前端 未结 5 898
北荒
北荒 2020-12-20 16:17

I have a bunch of sql scripts that create / drop sequences, users and other objects. I\'m running these scripts through liquibase, but they fail because oracle complains whe

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-20 16:44

    liquibase preconditions didn't check for existing sequences for me. So, after multiple attempts, I tried simple DROP SEQUENCE IF EXISTS "TABLENAME_ID_seq";

提交回复
热议问题