Skip to content

Commit

Permalink
390 removed enums from zoning-district-category and added constraints
Browse files Browse the repository at this point in the history
 - refactored some repos to fix type errors
  • Loading branch information
horatiorosa committed Dec 11, 2024
1 parent 273fc6d commit 9ef767a
Show file tree
Hide file tree
Showing 7 changed files with 1,201 additions and 21 deletions.
3 changes: 3 additions & 0 deletions db/migration/0020_superb_maginty.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE "zoning_district_class" ALTER COLUMN "category" SET DATA TYPE text;--> statement-breakpoint
ALTER TABLE "zoning_district_class" ADD CONSTRAINT "zoning_district_class_category_options" CHECK ("zoning_district_class"."category" IN ("Residential", "Commercial" "Manufacturing"));--> statement-breakpoint
DROP TYPE "public"."category";
Loading

0 comments on commit 9ef767a

Please sign in to comment.