Which version and edition of Flyway are you using?
Tested with flyway 6.2.4 (works), 6.3.3 (fails) and 6.4.0 (fails)
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
CLI on docker
Which database are you using (type & version)?
Which operating system are you using?
Linux / Mac
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
-- Schedule deletion of expired and otherwise invalid tokens
CREATE PROCEDURE `rmInvalidTokens` ()
BEGINDELETE OAuth2AccessToken FROM OAuth2AccessToken
INNER JOIN OAuth2Client ON (OAuth2AccessToken.clientId=OAuth2Client.id)
DELETEFROM OAuth2RefreshToken WHERE expires < NOW();
DELETE OAuth2AccessToken FROM User
INNER JOIN OAuth2AccessToken ON (User.id=OAuth2AccessToken.userId)
WHERE FIND_IN_SET('deleted', User.flags);
CREATE EVENT `rmInvalidTokens`ON SCHEDULE EVERY 1 HOUR STARTS '2019-08-13 00:00:00' ENABLE
Unable to parse statement in /flyway/sql/V201908081130__scheduleAndDelInvalidTokens.sql at line 1 col 1: Delimiter changed inside statement at line 1 col 1: -- Schedule deletion of expired and otherwise invalid tokens
The error happens on the comment -- Schedule deletion of expired and otherwise invalid tokens If I remove this comment it's working fine but this would change an already applied migration.
The text was updated successfully, but these errors were encountered: