DbMaintain / dbmaintain

DEPRECATED: DbMaintain enables automatic roll-out of updates to a relational database
https://dbmaintain.github.io
Apache License 2.0
17 stars 12 forks source link

CLEAR_INSERT does not disable table constraints prior to executing the DeleteAllOperation #21

Open jpopadak opened 7 years ago

jpopadak commented 7 years ago

I am using a test database that other tests might not have cleaned up, in doing so, I want to use the CLEAR_INSERT and also the dbMaintainer.disableConstraints.enabled=true property to disable constraints upon insert.

In doing this, when DbMaintain attempts to execute the DeleteAllOperation, it does not check to see if the disableConstraints flag is set to true. Thus, resulting in a SQL error that is two foreign keys away from the one I am trying to clear.