It is obvious that nobody has to remember all the details that are easy to find in the documentation. But on the other hand, it is good to know the basic stuff to not waste time checking it every time. Check forty ninth question of full-stack dev quiz to verify how much you remember about data modifications using Liquibase.
Which sentence best describes the difference between value and valueComputed attributes in update change used in Liquibase? For example:
<changeSet id="Update A" author="DBA presents">
<update tableName="test_table">
<column name="col1" value="abc" />
</update>
</changeSet>
<changeSet id="Update B" author="DBA presents">
<update tableName="test_table">
<column name="col1" valueComputed="abc" />
</update>
</changeSet>
Choose the best sentence.
valueComputedis optimized for performance before the changeset is actually applied,valueis parsed when it is appliedvalueworks for all data types butvalueComputedonly for numericsvalueComputedis dedicated to computed columns in the database,valueis for persisted columns- Both do exactly the same,
valueComputedis there for backward compatibility valueis for constant values,valueComputedcan be used with expressions
For the correct answer scroll down
.
.
.
.
.
.
The correct answer is: e. If you would like to read more, check Update data based on another column with Liquibase article.