pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

Enum names being truncated in 1.12.1

Open tomi-rtk opened this issue 4 months ago • 0 comments

I added a column to a table and two extra columns using enums are being modified but were not modified in the schema file.

user_status_log_source_enum -> user_status_log_source_en document_document_type_enum -> ocument_document_type_en

If I'm seeing correctly the names are getting truncated.

Tested the plan with versions 1.11.1, 1.12.0 and only the latest version produces this diff.

Tables: ~ document ~ document_type (column) ~ driver_session + auto_started (column) ~ user_status_log ~ source (column)

DDL to be executed:

ALTER TABLE document ALTER COLUMN document_type TYPE document_document_type_en USING document_type::document_document_type_en;

ALTER TABLE driver_session ADD COLUMN auto_started boolean DEFAULT false NOT NULL;

ALTER TABLE user_status_log ALTER COLUMN source TYPE user_status_log_source_en USING source::user_status_log_source_en;

tomi-rtk avatar Jul 29 '26 13:07 tomi-rtk