Skip to content

Commit 5244ff1

Browse files
authored
fix: rm docker approach to dbmate migration creation (#1904)
1 parent 6271465 commit 5244ff1

File tree

3 files changed

+0
-86
lines changed

3 files changed

+0
-86
lines changed

migrations/Dockerfile.dbmate

Lines changed: 0 additions & 23 deletions
This file was deleted.

migrations/README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -112,23 +112,6 @@ dbmate --no-dump-schema --migrations-dir="migrations/db/migrations" -u "postgres
112112

113113
Note: Migrations are applied using the `supabase_admin` superuser role, as specified in the "How it was Created" section above.
114114

115-
### Adding a migration with docker-compose
116-
117-
dbmate can optionally be run locally using docker:
118-
119-
```shell
120-
# Start the database server
121-
docker-compose up
122-
123-
# create a new migration
124-
docker-compose run --rm dbmate new '<some message>'
125-
```
126-
127-
Then, populate the migration at `./db/migrations/xxxxxxxxx_<some_message>` and make sure it execute sucessfully with
128-
129-
```shell
130-
docker-compose run --rm dbmate up
131-
```
132115
### Updating schema.sql for each major version
133116

134117
After making changes to migrations, you should update the schema.sql files for each major version of PostgreSQL:

migrations/docker-compose.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)