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

Open
4 tasks
TangoYankee opened this issue Nov 13, 2024 · 0 comments
Open
4 tasks

Comments

@TangoYankee
Copy link
Member

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
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

No branches or pull requests

1 participant