Skip to content

Commit

Permalink
Fix #3098: throw upgrade exception when using shouldExecute in community
Browse files Browse the repository at this point in the history
  • Loading branch information
madninjaskillz committed Mar 3, 2021
1 parent 6a19c8e commit cfeb7d3
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.flywaydb.core.api.logging.LogFactory;
import org.flywaydb.core.api.resource.LoadableResource;
import org.flywaydb.core.internal.configuration.ConfigUtils;
import org.flywaydb.core.internal.license.FlywayTeamsUpgradeRequiredException;
import org.flywaydb.core.internal.parser.Parser;
import org.flywaydb.core.internal.parser.PlaceholderReplacingReader;

Expand Down Expand Up @@ -51,6 +52,13 @@ private SqlScriptMetadata(Map<String, String> metadata) {




if(metadata.containsKey(SHOULD_EXECUTE))
{
throw new FlywayTeamsUpgradeRequiredException("shouldExecute");
}


ConfigUtils.checkConfigurationForUnrecognisedProperties(metadata, null);
}

Expand Down

0 comments on commit cfeb7d3

Please sign in to comment.