Skip to content

Commit

Permalink
Capital project category with check
Browse files Browse the repository at this point in the history
Use a check contraint for capital project category

closes #392 part 2 of 2
  • Loading branch information
TangoYankee committed Dec 23, 2024
1 parent 49b3b6f commit adca05b
Show file tree
Hide file tree
Showing 18 changed files with 1,237 additions and 15 deletions.
6 changes: 6 additions & 0 deletions db/migration/0021_dry_skreet.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE "capital_project" ADD COLUMN "category" text;--> statement-breakpoint
ALTER TABLE "capital_project" ADD CONSTRAINT "capital_project_category_options" CHECK ("capital_project"."category" IN (
'Fixed Asset',
'Lump Sum',
'ITT, Vehicles, and Equipment'
));
Loading

0 comments on commit adca05b

Please sign in to comment.