Running the following changeset using liquibase-3.2.2 (on mySql 5.6):
- < createTable tableName = "myTable" >
- < column name = "myId" type = "BIGINT(20) UNSIGNED" >
- < constraints nullable = "false" />
- </ column >
- < column name = "my_time" type = "datetime(3)" >
- < constraints nullable = "false" />
- </ column >
- </ createTable>
Will create the "my_time" column with
"datetime" type instead of "datetime(3)" type,
which means - it won't store milliseconds.
As a workaround, I create the table using <sql> changeset.
(also, FYI, I couldn't find a way to open a JIRA ticket
in https://liquibase.jira.com/ - it didn't allow me to create a
user using any of my email addresses saying my domain is not allowed)