supabase / wrappers

Postgres Foreign Data Wrapper development framework in Rust.
http://fdw.dev
Apache License 2.0
562 stars 56 forks source link

ci: automate extension upgrade scripts creation #310

Closed burmecia closed 3 months ago

burmecia commented 3 months ago

What kind of change does this PR introduce?

This PR is to automate the extension upgrade scripts creation.

What is the current behavior?

When a new version is released, we need to manually change the release.yml workflow to add a command for previous version upgrade script. Although this manual process is written in playbook, it is tedious and sometimes missed during release. If a certain version upgrade script is missing, it will cause upgrade issue for database with that legacy version of wrappers.

What is the new behavior?

Add a shell script to automate the upgrade script creation process, so it won't missing any previous version upgrade script.

Additional context

N/A