[
https://issues.apache.org/jira/browse/OPENJPA-2808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17330022#comment-17330022
]
Maxim Solodovnik commented on OPENJPA-2808:
-------------------------------------------
Hello [~struberg],
I usually add as much {{DROP}} as possible
Sometimes automatics fails :(
In fact I add this PR due to I found some issues in our project (OpenMeetings)
> SchemaTool action DROP doesn't drop Indexes created with @Index
> ---------------------------------------------------------------
>
> Key: OPENJPA-2808
> URL: https://issues.apache.org/jira/browse/OPENJPA-2808
> Project: OpenJPA
> Issue Type: Bug
> Components: kernel
> Affects Versions: 3.1.1
> Reporter: Mark Struberg
> Assignee: Maxim Solodovnik
> Priority: Major
> Fix For: 3.1.3
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When using {{@Index(name="IFK_SOMEFK",...}} we should also drop this when
> generating the DROP statement with our SchemaTool.
> e.g. when setting
> {noformat}
> <plugin>
> <groupId>org.apache.openjpa</groupId>
> <artifactId>openjpa-maven-plugin</artifactId>
> <version>${openjpa.version}</version>
> <configuration>
> <sqlAction>drop</sqlAction>
> </configuration>
> </plugin>
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)