Skip to content

Commit

Permalink
add comment on new sex column in critter table
Browse files Browse the repository at this point in the history
  • Loading branch information
mauberti-bc committed Sep 26, 2024
1 parent 4a02748 commit 7ed8518
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prisma/migrations/20240830115300_animal_sex/migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changes critter sex from an enum to a quantitative measurement to allow for spec

-- Step 1: Add new column for UUID values
ALTER TABLE critter ADD COLUMN sex_qualitative_option_id UUID;
COMMENT ON COLUMN critter.sex_qualitative_option_id IS 'The sex of the critter, recorded as a qualitative_option_id for a sex measurement applicable to the species.';

-- Step 2: Update the temporary column with mapped UUIDs
-- The only critters with sex values are in kingdom Animalia, so we can just consider the sex measurement assigned to Animalia (202423)
Expand Down

0 comments on commit 7ed8518

Please sign in to comment.