-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from Indicia-Team/hotfix-licences
Hotfix licences
- Loading branch information
Showing
3 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
modules/indicia_setup/db/version_0_9_1/201512011332_group_licence.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ALTER TABLE groups ADD COLUMN licence_id integer; | ||
COMMENT ON COLUMN groups.licence_id IS 'ID of the licence that is associated with this group and the records submitted to it.'; | ||
|
||
ALTER TABLE groups | ||
ADD CONSTRAINT fk_group_licence FOREIGN KEY (licence_id) REFERENCES licences (id) | ||
ON UPDATE NO ACTION ON DELETE NO ACTION; | ||
COMMENT ON CONSTRAINT fk_groups_licence ON groups | ||
IS 'The records submitted to each group are licenced according to the linked record.'; | ||
CREATE INDEX ix_group_licence | ||
ON groups(licence_id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters