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
When I modify a enum field with ALTER command, the generated models not added a new enum value, and it change the data type of field in struct as string instead of the "type ...Status string".
Relevant log output
No response
Database schema
CREATETABLEauthors (
id bigintprimary key,
status enum("ok", "init") default "init"not null
);
-- remove this alter to see the change in models.goALTERTABLE authors MODIFY status enum('init', 'done', 'canceled', 'processing', 'waiting') default "init"not null;
Activity
[-]Sqlc unable to update enum in models when using ALTER[/-][+]ALTER TABLE MODIFY enum not respected[/+]fix(engine/dolphin): support enum in ALTER definition (#2680)
fix(engine/dolphin): support enum in ALTER definition (sqlc-dev#2680)