Yes but with defaultValueDate … forgot to mention that I am running 1.9.3 of Liquibase.
However, type=“TIMESTAMP” gives me DATETIME in the create statement.
Originally posted by: svaret
Yes but with defaultValueDate ... forgot to mention that I am running 1.9.3 of Liquibase.
However, type="TIMESTAMP" gives me DATETIME in the create statement.
I guess this is artifacts that originally was influences with old known Oracle inconsistence (bug?) concerns date times types in different Oracle 8/9/10 version. No chance to switch to the Lqb 2.0?
sorry about my previous post, I’ve skipped you use MySql, not Oracle ;)
Switch to 2.0 does allow you extend the particular SQLGenerator, if currently has unexpected behavior. To check if it already fixed, create a separate project. You use maven, it should take not much time.
Caution: in 2.0 Liqubase plugin is renamed: liquibase-maven-plugin, not liquibase-plugin as in 1.9.x
(Jumping in to this thread.) Tell me about defaultValueComputed. I am not familiar with that one. It doesn’t show up in http://www.liquibase.org/manual/column.
Basically, it allows you to specify a function as the default value, rather than a static value. Liquibase will never attempt to quote it. It was added to handle cases like your CURRENT_TIMESTAMP value.