Liquibase 3.6.3 -> 3.7.0 Regression on INDENTITY column data type change

Description

When altering IDENTITY type column in postgres to some new data type, the newer versions throw and error
`liquibase.exception.DatabaseException: ERROR: identity column type must be smallint, integer, or bigint [Failed SQL: (0) ALTER TABLE public.table ALTER COLUMN id TYPE VARCHAR(10) USING (id::VARCHAR(10))]` and fail the migrations. Where as liquibase 3.6.3 successfully apply the change.

Altering changeset:

 

This started triggering when the db was cleaned and and all migrations were ran with the new version. When running on dbs, were this change was already applied, there are errors.

Original column definition:

 

The generated column DDL with 3.6.3:

The generated column DDL with 3.7.0:

 

Environment

PostgresSQL
Linux
Springboot 2.2.0

Status

Assignee

Unassigned

Reporter

Paulius Paplauskas

Labels

None

Components

Affects versions

Priority

Major
Configure