Skip to content

Commit b670097

Browse files
committed
docs: schema.sql per maj version update
1 parent b3010c8 commit b670097

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

migrations/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,17 @@ Then, populate the migration at `./db/migrations/xxxxxxxxx_<some_message>` and m
120120
```shell
121121
docker-compose run --rm dbmate up
122122
```
123+
### Updating schema.sql for each major version
123124

125+
After making changes to migrations, you should update the schema.sql files for each major version of PostgreSQL:
126+
127+
```shell
128+
# First, stop any running PostgreSQL servers
129+
# Then from the root of supabase/postgres run:
130+
nix run .#dbmate-tool -- --version all
131+
```
132+
133+
This will create a schema.sql file for each major version of PostgreSQL. Commit these changes to your repository and push to your branch. The test.yml workflow will verify these changes against the test matrix.
124134
## Testing
125135

126136
Migrations are tested in CI to ensure they do not raise an exception against previously released `supabase/postgres` docker images. The full version matrix is at [test.yml](./.github/workflows/test.yml) in the `supabase-version` variable.

0 commit comments

Comments
 (0)