Skip to content

Commit

Permalink
Merge pull request #26 from cabinetoffice/fix/unique-constraints
Browse files Browse the repository at this point in the history
Adding unique constraints to apply DB
  • Loading branch information
dominicwest authored Aug 31, 2023
2 parents 2bfb738 + 9ee89fd commit 706131b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
- AFG-**
- bug/**
- GAP-**
- fix/**
pull_request:
branches:
- feature/**
- AFG-**
- bug/**
- GAP-**
- fix/**

jobs:
build:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE gap_user ADD CONSTRAINT unique_user_sub UNIQUE (user_sub);
ALTER TABLE grant_applicant ADD CONSTRAINT unique_user_id UNIQUE (user_id);
ALTER TABLE grant_admin ADD CONSTRAINT unique_user_id UNIQUE (user_id);
ALTER TABLE grant_applicant_organisation_profile ADD CONSTRAINT unique_applicant_id UNIQUE (applicant_id);

0 comments on commit 706131b

Please sign in to comment.