-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add uindex to application (fixes multiple 'apply' button clicks …
…bug)
- Loading branch information
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
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,8 @@ | ||
-- Deploy ggircs-portal:tables/application_001 to pg | ||
-- requires: tables/application | ||
|
||
begin; | ||
|
||
create unique index application_facility_year_uindex on ggircs_portal.application(facility_id, reporting_year); | ||
|
||
commit; |
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,7 @@ | ||
-- Revert ggircs-portal:tables/application_001 from pg | ||
|
||
begin; | ||
|
||
drop index ggircs_portal.application_facility_year_uindex; | ||
|
||
commit; |
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
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,12 @@ | ||
-- Verify ggircs-portal:tables/application_001 on pg | ||
|
||
begin; | ||
|
||
select exists( | ||
select * from pg_indexes | ||
where schemaname='ggircs_portal' | ||
and tablename='application' | ||
and indexname='application_facility_year_uindex' | ||
); | ||
|
||
rollback; |