Hello everyone, great work on this amazing project! 馃憦馃徏
We've developed numerous MergeStat syncs for internal purposes, collecting data from our apps and inserting outcomes into Postgres. Our code resides in a Git repository, containing Dockerfiles and main.ts scripts. Our approach involves building images and pushing them to the same registry's repository but with varying tags. This work aligns seamlessly with our existing CI integration for automated build and deployment.
However, we're encountering an issue with MergeStat's schema, which imposes a unique constraint (unique_container_images_url) on the url column within mergestat.container_images table:
(https://github.com/mergestat/mergestat/blob/81d136637e2f2062327e30838310f9c9a8df7906/migrations/900000000000064_update_explore_add_saved_explores.up.sql#L229C50-L229C50)
This constraint restricts us from adding more syncs from our repository with the same URL but different tags, as the schema demands uniqueness for URLs.
To address this, we've resolved the issue by removing the uniqueness constraint using ALTER TABLE mergestat.container_images DROP CONSTRAINT IF EXISTS unique_container_images_url;, enabling us to add all our syncs.
Could this action potentially cause other functionalities to fail?
We're curious about the rationale behind making the url column unique.
Alternatively, another approach could involve pushing all syncs into their own repositories. However, as mentioned earlier, we view this as a singular project and would prefer to avoid such segregation, especially if the uniqueness of the column might be reconsidered or removed in the near future.
Hello everyone, great work on this amazing project! 馃憦馃徏
We've developed numerous MergeStat syncs for internal purposes, collecting data from our apps and inserting outcomes into Postgres. Our code resides in a Git repository, containing Dockerfiles and main.ts scripts. Our approach involves building images and pushing them to the same registry's repository but with varying tags. This work aligns seamlessly with our existing CI integration for automated build and deployment.
However, we're encountering an issue with MergeStat's schema, which imposes a unique constraint (unique_container_images_url) on the url column within mergestat.container_images table:
(https://github.com/mergestat/mergestat/blob/81d136637e2f2062327e30838310f9c9a8df7906/migrations/900000000000064_update_explore_add_saved_explores.up.sql#L229C50-L229C50)
This constraint restricts us from adding more syncs from our repository with the same URL but different tags, as the schema demands uniqueness for URLs.
To address this, we've resolved the issue by removing the uniqueness constraint using
ALTER TABLE mergestat.container_images DROP CONSTRAINT IF EXISTS unique_container_images_url;, enabling us to add all our syncs.Could this action potentially cause other functionalities to fail?
We're curious about the rationale behind making the url column unique.
Alternatively, another approach could involve pushing all syncs into their own repositories. However, as mentioned earlier, we view this as a singular project and would prefer to avoid such segregation, especially if the uniqueness of the column might be reconsidered or removed in the near future.