Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flyway:clean doesn't remove compiled java source #697

Closed
pianovwork opened this issue Feb 11, 2014 · 1 comment
Closed

flyway:clean doesn't remove compiled java source #697

pianovwork opened this issue Feb 11, 2014 · 1 comment

Comments

@pianovwork
Copy link

I have some compiled java source in Oracle DB:

CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "MyJavaSource" AS
public class MyJavaSource {
public static int sum(int a, int b) { return a + b;}
}

But after flyway:clean process, It's not removed.
SELECT * FROM all_objects WHERE owner = ?

I think you need to extend your logic in the OracleSchema.doClean function:
for (String statement : generateDropStatementsForObjectType("JAVA SOURCE", "")){
jdbcTemplate.execute(statement);
}

axelfontaine pushed a commit that referenced this issue Feb 11, 2014
#697: add support for cleaning 'JAVA SOURCE' in Oracle DB
@pianovwork
Copy link
Author

Merged #698

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant