liquibase-neo4j icon indicating copy to clipboard operation
liquibase-neo4j copied to clipboard

Add support for cypher check precondition in Cypher formatted files

Open fbiville opened this issue 1 year ago • 0 comments

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

fbiville avatar May 05 '23 07:05 fbiville