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
pyanoveugen opened this issue Feb 11, 2014 · 1 comment
Closed

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

pyanoveugen opened this issue Feb 11, 2014 · 1 comment

Comments

@pyanoveugen
Copy link

@pyanoveugen pyanoveugen commented Feb 11, 2014

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 added a commit that referenced this issue Feb 11, 2014
#697: add support for cleaning 'JAVA SOURCE' in Oracle DB
@pyanoveugen
Copy link
Author

@pyanoveugen pyanoveugen commented Feb 11, 2014

Merged #698

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.