mirror of
https://github.com/supabase/setup-cli.git
synced 2025-12-09 12:26:25 +00:00
Adds a migrations file
This commit is contained in:
27
docs/migrations.md
Normal file
27
docs/migrations.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Managing database migrations
|
||||||
|
|
||||||
|
Migrations are programmatic changes to your database. They are usually checked into Git.
|
||||||
|
|
||||||
|
|
||||||
|
## Testing your migrations
|
||||||
|
|
||||||
|
Inside your repository, create a new file inside the `.github/workflows` folder called `test-migrations.yml`.
|
||||||
|
|
||||||
|
Copy this snippet inside the file, and the action will run whenever a new PR is created:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: 'test-migrations'
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: supabase/setup-cli@v1
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
- run: supabase init
|
||||||
|
- run: supabase db start
|
||||||
|
```
|
||||||
|
|
||||||
@@ -7,6 +7,7 @@ repo_url: https://github.com/supabase/supabase-github-action
|
|||||||
|
|
||||||
nav:
|
nav:
|
||||||
- Welcome: 'index.md'
|
- Welcome: 'index.md'
|
||||||
|
- Quickstart: 'migrations.md'
|
||||||
|
|
||||||
theme:
|
theme:
|
||||||
name: 'material'
|
name: 'material'
|
||||||
|
|||||||
Reference in New Issue
Block a user