Skip to content

Commit a6493d2

Browse files
committed
Add dbMigrations instructions to readme.
1 parent d8f3522 commit a6493d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

backend/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,11 @@ If you now run [the frontend](../frontend/README.md) you should be able to commu
6262
## Running Tests
6363

6464
Tests can be run with `poetry run pytest`
65+
66+
67+
## Running DB Migrations
68+
69+
Load env variables with `source .env`
70+
Run Python locally `python3`
71+
Import migration file >>>: `from src.database.migrations.(migration_file_name) import up, down`
72+
Run migration >>>: `up()` / `down()`

0 commit comments

Comments
 (0)