Add get_party_description function and Liquibase migration#1
Draft
luss wants to merge 4 commits into
Draft
Conversation
Introduces get_party_description(party_id) as a STABLE plpgsql function that selects description from public.party without modifying data. Co-authored-by: Denis Lussier <luss@users.noreply.github.com>
Introduces liquibase/ with master changelog, changeset 001 that deploys the read-only PL/pgSQL function via sqlFile (splitStatements=false), COMMENT ON FUNCTION, and rollback DROP FUNCTION. Co-authored-by: Denis Lussier <luss@users.noreply.github.com>
Replace XML changeset and sqlFile indirection with direct formatted SQL (--liquibase formatted sql, --changeset, --rollback). Master changelog is now db.changelog-master.sql. Co-authored-by: Denis Lussier <luss@users.noreply.github.com>
Plain PostgreSQL in .sql files; changeset metadata and sqlFile refs stay in minimal XML. Add separate rollback SQL file. Co-authored-by: Denis Lussier <luss@users.noreply.github.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.
Adds a read-only PL/pgSQL function and a Liquibase project using formatted SQL changelogs (no XML changesets).
Liquibase (formatted SQL)
Changeset
ctl:001-get-party-descriptionuses inline SQL withsplitStatements:falseand--rollbackfor the$function$body.Function
public.get_party_description(bigint)— also incli/scripts/sql/get_party_description.sql