You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Microsoft SQL Server Developer (64-bit) 15.0.2080.9
Operating System Type & Version:
Windows 10 Pro (10.0)
Description
Liquibase 4.6.1 (and lower?) seems to require a value for the type property for the column specified in a addColumn change, this prevents the possibility to create a computed column on mssql as the generated SQL statement leads to a syntax error
Steps to reproduce
The following changeset worked with Liquibase 4.3.5:
liquibase.exception.ValidationFailedException: Validation Failed:
1 changes have validation failures
columnType is empty, config/liquibase/changelog/20200123110200_create_index_entity_Event.xml::20200123095600-1::me
It complains that the type attribute of the column specified in the addColumnchange is empty.
If I specify the correct type as follows...
<column name="payload_id AS JSON_VALUE(payload,'$.id')"
type="nvarchar(4000)"
computed="true">
</column>
...Liquibase compiles it to the following SQL statement, which leads to a syntax error on mssql:
[Failed SQL: (102) ALTER TABLE event ADD payload_id AS JSON_VALUE(payload,'$.id') nvarchar(4000)]
Expected/Desired Behavior
I expect the pre-existing addColumn block for creating computed columns on mssql to be working even in 4.6.1, either without specifying the type property or by correctly specifying it and having the generated SQL statement to be correct.
The text was updated successfully, but these errors were encountered:
@nickshoe thanks for submitting this issue -- we are reviewing it and will definitely get back to you.
Also, if you haven't had a chance to check out https://forum.liquibase.org/ make sure to swing by -- it's becoming a pretty solid place for questions, community help, etc.
Currently having the same issue as recently upgraded from 13.10.3 to 4.5.0. Unable to update the changelog as it is our initial log that has been released. The type was not specified (type=''") as it is a computed column but it is now failing validation upon updateSQL goal being run in maven.
Environment
Liquibase Version: 4.6.1
Liquibase Integration & Version: maven
Liquibase Extension(s) & Version:
Database Vendor & Version:
Operating System Type & Version:
Description
Liquibase 4.6.1 (and lower?) seems to require a value for the
type
property for the column specified in aaddColumn
change, this prevents the possibility to create a computed column on mssql as the generated SQL statement leads to a syntax errorSteps to reproduce
The following changeset worked with Liquibase 4.3.5:
But, 4.6.1 gives me the following error:
It complains that the
type
attribute of the column specified in theaddColumn
change is empty.If I specify the correct type as follows...
...Liquibase compiles it to the following SQL statement, which leads to a syntax error on mssql:
Expected/Desired Behavior
I expect the pre-existing
addColumn
block for creating computed columns on mssql to be working even in 4.6.1, either without specifying thetype
property or by correctly specifying it and having the generated SQL statement to be correct.The text was updated successfully, but these errors were encountered: