Repository navigation
Sync fmsg-webapi DD script with main - #27
Merged
Merged
Conversation
Adds fmsg_api_delivery_pending, which fmsg-webapi has used since its #59 to decide whether a message deleted for good can be removed from the host. The fmsgd and fmsgid copies were already current. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/update-dd.shagainst currentmainof fmsgd, fmsgid and fmsg-webapi. Only the fmsg-webapi copy had drifted:docker/postgres/init/003-fmsg-webapi-dd.sqlgains the functionfmsg_api_delivery_pending, added upstream in Trash: a delivery fmsgd has given up on no longer keeps a message fmsg-webapi#59. fmsg-webapi calls it when a message is deleted for good, to decide whether the message can be removed from the host, so on a stack initialised from the old copy that path fails.The change is additive: 27 lines, one
CREATE OR REPLACE FUNCTION. The fmsgd and fmsgid copies were already up to date.Testing
scripts/update-dd.sh --checkreports all three copies up to date.002-fmsgd-dd.sqland then the new003-fmsg-webapi-dd.sql(twice, to confirm it stays idempotent) to a fresh PostgreSQL 17 withON_ERROR_STOP; both load andfmsg_api_delivery_pendingcan be called.🤖 Generated with Claude Code