java - Flyway throwing error on migration script -


i'm trying out flyway potentially use in our project , have extremely simple migration script. appear have set incorrectly - flyway connects db (sql server 2008 r2) create metadata tables, when run script get

 [error] failed execute goal com.googlecode.flyway:flyway-maven-plugin:2.2.1:migrate      (default-cli) on project persistence: com.googlecode.flyway.cor  e.api.flywayexception: migration of schema [dbo] version 1.1 failed! changes rolled back. incorrect syntax near '?'. -> [help 1] 

my script is:

 alter table msg.message  add deleted bit null 

looking @ debug logs, flyway outputs:

 [debug] executing sql: ??a l t e r   t b l e   m s g . m e s s g e    d d   d e l e t e d   b t   n u l l 

i don't know question marks come from, or why text has spaces. ideas?

that kind of output indicates utf, in 16-bit form, magic character @ beginning. ? , spaces giveaway.

several ms tools speak natively, while unix tools use utf-8.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -