Skip to content

Add get_party_description function and Liquibase migration#1

Draft
luss wants to merge 4 commits into
mainfrom
cursor/party-description-function-b094
Draft

Add get_party_description function and Liquibase migration#1
luss wants to merge 4 commits into
mainfrom
cursor/party-description-function-b094

Conversation

@luss
Copy link
Copy Markdown
Owner

@luss luss commented May 21, 2026

Adds a read-only PL/pgSQL function and a Liquibase project using formatted SQL changelogs (no XML changesets).

Liquibase (formatted SQL)

liquibase/changelog/
  db.changelog-master.sql              # --include file:changes/...
  changes/001-get-party-description.sql

Changeset ctl:001-get-party-description uses inline SQL with splitStatements:false and --rollback for the $function$ body.

cd liquibase && liquibase update

Function

public.get_party_description(bigint) — also in cli/scripts/sql/get_party_description.sql

Open in Web Open in Cursor 

cursoragent and others added 2 commits May 21, 2026 18:05
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>
@cursor cursor Bot changed the title Add read-only get_party_description PL/pgSQL function Add get_party_description function and Liquibase migration May 21, 2026
cursoragent and others added 2 commits May 21, 2026 18:14
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants