I created a table using liquibase databaseChangeLog:
<changeSet id="1" author="person1">
<createTable tableName="schedule">
<column name="id" type="varchar(20)">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="worktime" type="datetime">
</column>
</createTable>
</changeSet>
However when verifying my sqlite database, the table schema becomed below:
sqlite> .schema schedule
CREATE TABLE schedule (
id TEXT NOT NULL,
worktime TEXT,
CONSTRAINT PK_SCHEDULE
PRIMARY KEY (id));
You see both varchar and datatime were changed to text type. What I should add into changeSet table definition to make it work right. By the way, I am using liquibase-1.9.3.jar. Now I have to correct them directly from sqlite DB. Thanks.