Skip to content

Commit

Permalink
migrations: add UNIQUE constraints to other v1 tables
Browse files Browse the repository at this point in the history
  • Loading branch information
vrmiguel committed Dec 21, 2023
1 parent 459f68b commit b71d7de
Showing 1 changed file with 14 additions and 0 deletions.
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);

0 comments on commit b71d7de

Please sign in to comment.