Tom J Muthirenthi :
My Liquibase update changeset is given as below:
<changeSet author="liquibase" id="6226">
<update tableName="master">
<column name="insighttype" valueNumeric="0"/>
<where>id=1</where>
</update>
</changeSet>
While running liquibase command, in the log I see:
UPDATE db.master SET insighttype = 0 WHERE id=7
But when I go back and check in the database:
+----+-----------------+-------------+
| id | insightname | insighttype |
+----+-----------------+-------------+
| 1 | action_items | |
| 2 | sentiments | |
| 3 | wordcloud | |
| 4 | entity | |
| 5 | summary | |
| 6 | trade_info | |
| 7 | topic_modelling | |
+----+-----------------+-------------+
htshame :
In order to update boolean
columns, you should use valueBoolean
attribute.
E.G.
<changeSet author="liquibase" id="6226">
<update tableName="master">
<column name="insighttype" valueBoolean="false"/>
<where>id=1</where>
</update>
</changeSet>