Support for reference-partitioned tables (Oracle 11g) #178
Original author: sandro.d...@gmail.com (March 28, 2013 09:17:26)
We introduced reference partitioning (Oracle 11g). As a consequence, the flyway clean goal fails with "ORA-14656: cannot drop the parent of a reference-partitioned table".
Flyway drops tables by using "drop table xyz cascade constraints purge". Unfortunately, this does not work for reference-partitioned tables.
We see two possible ways to solve this issue:
Solution 2 is more like a new feature than a bugfix. Which solution would make sense to you? Or any less invasive ideas for solving this issue?
If you wish, we could contribute to solution 1 and provide a pull request. We wrote a plsql script dropping the user tables in correct order and could try to integrate it into OracleDbSupport.
PS: I attached the plsql script (not the final version, but just to give an idea...)
Original issue: http://code.google.com/p/flyway/issues/detail?id=465
The text was updated successfully, but these errors were encountered:
From firstname.lastname@example.org on April 01, 2013 17:23:31
thanks for reporting this. I am not particularly keen on either of these solutions. I could however accept a pull request that lists and drops the child tables first, before the parents. (This is the order I assume they should be dropped in)
I unfortunately have no means to test this myself as this is only available in Oracle Enterprise.