We're updating the issue view to help you get more done. 

liquibase treat tinyint(1) as boolean in mysql when using generateChangeLog

Description

If the type of column is tinyint(1) with a default value 2, liquibase may failed as:
liquibase.exception.DatabaseException: java.text.ParseException: Unknown bit value: 2
at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.getColumnTypeAndDefValue(JdbcDatabaseSnapshotGenerator.java:404)

Since tinyint of mysql may store any integer in the range -128..127, tinyint(1) can be used as numeric type sometime.

Environment

db:mysql

Status

Assignee

Unassigned

Reporter

Crystal

Labels

Components

Fix versions

Affects versions

2.0.5

Priority

Major