Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Clear CDOGS templates with every run #700

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions migrations/migrations/R__reset-templates.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---------------------
-- Resets the CDOGS template hashes on every migration to ensure we always upload a new one
--
-- The last line of the comment is where the magic happens, it will refresh the date -
-- even if no changes are made.
--
-- Last Run on: ${flyway:timestamp}
----------------------

UPDATE "configuration"
SET
configuration_value = ''
WHERE
configuration_code IN ('ERSTMPLATE', 'HWCTMPLATE');
Loading