Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Change Enum name generation in PgSQL and quote it #128

Closed
SOHELAHMED7 opened this issue Jan 2, 2023 · 1 comment · Fixed by SOHELAHMED7/yii2-openapi#10
Closed

Change Enum name generation in PgSQL and quote it #128

SOHELAHMED7 opened this issue Jan 2, 2023 · 1 comment · Fixed by SOHELAHMED7/yii2-openapi#10

Comments

@SOHELAHMED7
Copy link
Contributor

2 changes related to enum in PgSQL is required

  1. enum type name generation should include table name. Currently it conflict with other column name. enum_column_name to enum_table_name_column_name. This is required in case like Task.status can be one of ["open", "working", "closed"] and Invoice.status can be one of draft, ready or billed (bug)
  2. quote enum type name to preserve case sensitive column name; see Quote issue to preserve the case of the column name #127 but for enum type name
@SOHELAHMED7
Copy link
Contributor Author

Also add tests for #127

SOHELAHMED7 added a commit to SOHELAHMED7/yii2-openapi that referenced this issue Jan 4, 2023
…on-in-pgsql-and-quote-it

Draft - Fix cebe#128 - Change Enum name generation in PgSQL and quote it
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant