-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrations: add UNIQUE constraints to other v1 tables
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
registry/migrations/20231221204029_add-unique-constraints-to-v1-tables.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,14 @@ | ||
ALTER TABLE v1.extension_dependency | ||
ADD CONSTRAINT unique_dependency UNIQUE (extension_version_id, depends_on_extension_name); | ||
|
||
ALTER TABLE v1.extension_configurations | ||
ADD CONSTRAINT unique_extension_config UNIQUE (extension_version_id, configuration_name); | ||
|
||
ALTER TABLE v1.trunk_project_postgres_support | ||
ADD CONSTRAINT unique_trunk_project_postgres_support UNIQUE (postgres_version_id, trunk_project_version_id); | ||
|
||
ALTER TABLE v1.extensions_loadable_libraries | ||
ADD CONSTRAINT unique_extension_library UNIQUE (extension_version_id, library_name); | ||
|
||
ALTER TABLE v1.control_file | ||
ADD CONSTRAINT control_file_extension_version_id_unique UNIQUE (extension_version_id); |