-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update dependency net.jqwik:jqwik to v1.9.1 [12acb5d4] * Update dependency gradle to v8.10.2 [1f7ffadd] * Cleanup [50db270a] * Update dependency commons-io:commons-io to v2.17.0 [1b24f4f5] * Update dependency org.eclipse.jgit:org.eclipse.jgit to v7 [cd1c049c] * Commit transactions in tests related to ROAs [c4811046] * Simplify [f25cbca0] * Update dependency org.postgresql:postgresql to v42.7.4 [c27e8b09] * Update dependency io.freefair.lombok:io.freefair.lombok.gradle.plugin to v8.10 [832c8fad] * Update dependency gradle to v8.10 [c56b9c2b] * Fix the deleted_at field not set in some cases. [7b3a977f] * Update dependency io.sentry:sentry-bom to v7.14.0 [048dce64] * Support deployments from merge trains [f94c4b7a] * Fix filtering deployments past the merge timestamp [ac9457c8] * Create or replace trigger [3be8a1de] * Revert changes by mistake [a5ace1d6] * Make it a repeatable migration [ead9c2ca] * Add a workaround trigger to fill up deleted_roaconfiguration_prefixes.deleted_at [1bc9263b]
- Loading branch information
RPKI Team at RIPE NCC
committed
Oct 8, 2024
1 parent
751a106
commit c24c9cf
Showing
14 changed files
with
59 additions
and
27 deletions.
There are no files selected for viewing
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
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
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
Binary file not shown.
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
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
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
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
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
21 changes: 21 additions & 0 deletions
21
src/main/resources/db/migration/R__fix_deleted_at_roa_prefixe.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,21 @@ | ||
CREATE OR REPLACE FUNCTION force_roa_prefix_deleted_at() | ||
RETURNS TRIGGER | ||
LANGUAGE plpgsql AS | ||
$$ | ||
BEGIN | ||
NEW.deleted_at := now(); | ||
RETURN NEW; | ||
END | ||
$$; | ||
|
||
CREATE OR REPLACE TRIGGER delete_roa_prefix_before_insert | ||
BEFORE INSERT ON deleted_roaconfiguration_prefixes | ||
FOR EACH ROW | ||
WHEN (NEW.deleted_at IS NULL) | ||
EXECUTE FUNCTION force_roa_prefix_deleted_at(); | ||
|
||
DROP TRIGGER IF EXISTS delete_roa_prefix_before_insert ON deleted_roaconfiguration_prefixes; | ||
DROP FUNCTION IF EXISTS force_roa_prefix_deleted_at(); | ||
|
||
-- TODO This migration is to be deleted after next deployment dropping the trigger workaround | ||
|
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
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
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
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