Skip to content

Commit

Permalink
docs(contributing): how to nuke the docker-compose postgres (#31186)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Dec 2, 2024
1 parent 339d491 commit deec63b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/docs/contributing/development.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,24 @@ documentation.
configured to be secure.
:::

### Nuking the postgres database

At times, it's possible to end up with your development database in a bad state, it's
common while switching branches that contain migrations for instance, where the database
version stamp that `alembic` manages is no longer available after switching branch.

In that case, the easy solution is to nuke the postgres db and start fresh. Note that the full
state of the database will be gone after doing this, so be cautious.

```bash
# first stop docker-compose if it's running
docker-compose down
# delete the volume containing the database
docker volume rm superset_db_home
# restart docker-compose, which will init a fresh database and load examples
docker-compose up
```

## Installing Development Tools

:::note
Expand Down

0 comments on commit deec63b

Please sign in to comment.