-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hasura): add unique lowercase value
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...kga-pg/1689911956422_add unique language_id and lowercase value in tag languages/down.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,8 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- DROP TRIGGER IF EXISTS lowercase_tag_lang_value_on_insert ON tag_languages; | ||
-- | ||
-- DROP FUNCTION IF EXISTS lowercase_tag_lang_value_on_insert; | ||
-- | ||
-- CREATE UNIQUE INDEX IF NOT EXISTS tag_languagues_language_id_lower_value_key | ||
-- ON tag_languages (lower(value), language_id); |
6 changes: 6 additions & 0 deletions
6
...unkga-pg/1689911956422_add unique language_id and lowercase value in tag languages/up.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,6 @@ | ||
DROP TRIGGER IF EXISTS lowercase_tag_lang_value_on_insert ON tag_languages; | ||
|
||
DROP FUNCTION IF EXISTS lowercase_tag_lang_value_on_insert; | ||
|
||
CREATE UNIQUE INDEX IF NOT EXISTS tag_languagues_language_id_lower_value_key | ||
ON tag_languages (lower(value), language_id); |