Skip to content

Commit

Permalink
Update migration part
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfranklin committed Dec 8, 2023
1 parent c9d5148 commit 036aa9e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,17 @@ send a GET request to `localhost:8000/projects` and you should get that back.

See https://github.com/TACC-Cloud/hazmapper for details.

### Migrations
### Creating migrations when updating database models

These are useful steps to follow when there are changes to the database model.

Applying migrations
First, apply migrations:

```
docker exec -it geoapi alembic upgrade head
```

Creating migrations
Then, create migrations:

```
docker exec -it geoapi /bin/bash
Expand Down

0 comments on commit 036aa9e

Please sign in to comment.