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

Add support for cypher check precondition in Cypher formatted files #374

Open
fbiville opened this issue May 5, 2023 · 0 comments
Open

Comments

@fbiville
Copy link
Collaborator

fbiville commented May 5, 2023

This will require a change to liquibase.parser.core.formattedsql.FormattedSqlChangeLogParser to make it extensible.
The error currently looks like this:

liquibase.exception.CommandExecutionException: liquibase.exception.ChangeLogParseException: The 'cypher-check' precondition type is not supported.

	at liquibase.command.CommandScope.execute(CommandScope.java:235)
	at liquibase.ext.neo4j.e2e.PreconditionsIT.runs migrations depending on Cypher result(PreconditionsIT.groovy:64)
Caused by: liquibase.exception.ChangeLogParseException: The 'cypher-check' precondition type is not supported.
	at liquibase.parser.core.formattedsql.FormattedSqlChangeLogParser.parse(FormattedSqlChangeLogParser.java:577)
	at liquibase.command.core.helpers.DatabaseChangelogCommandStep.getDatabaseChangeLog(DatabaseChangelogCommandStep.java:100)
	at liquibase.command.core.helpers.DatabaseChangelogCommandStep.run(DatabaseChangelogCommandStep.java:77)
	at liquibase.command.CommandScope.execute(CommandScope.java:212)
	... 1 more
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

2 participants