Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor zoning district class category from enum to check constraint #390

Closed
4 tasks done
TangoYankee opened this issue Nov 13, 2024 · 0 comments · Fixed by #396
Closed
4 tasks done

Refactor zoning district class category from enum to check constraint #390

TangoYankee opened this issue Nov 13, 2024 · 0 comments · Fixed by #396
Assignees

Comments

@TangoYankee
Copy link
Member

TangoYankee commented Nov 13, 2024

Acceptance criteria

  • Remove the categoryEnum from zoning-district-class
  • Change the category field from a categoryEnum to a text type
  • Add a check constraint to the category field which ensures the value is one of the options previously enforced by the enum
    • Note: the zoningDistrictClassCategoryEntitySchema should remain untouched. We are still using the field like an enum in the javascript api.
  • Generate a drizzle migration

Related

Depends on #386

@TangoYankee TangoYankee changed the title Move zoning district class category from enum to check constraint Refactor zoning district class category from enum to check constraint Nov 13, 2024
@horatiorosa horatiorosa self-assigned this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants