Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
1ukastesar authored and solumath committed May 1, 2023
1 parent 99ec53c commit fd6c7d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions repository/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Connecting to the DB through Docker (externally)

```
```bash
docker exec -it $(docker ps -aqf "name=rubbergod-db-1") psql -U postgres
```

Expand All @@ -11,7 +11,8 @@ PostgreSQL prompt will open and you can now run any SQL (or Postgre-specific) co
### Create new table at the start of the Bot

Create a new module with DB structure class ( example from `MemeRepost`):
```

```python
from sqlalchemy import Column, String

from repository.database import database
Expand All @@ -28,7 +29,7 @@ class MemeRepost(database.base):

Add the following into `repository/db_migrations.py`:

```
```python
from repository.database.meme_repost import MemeRepost # noqa: F401
```

Expand Down

0 comments on commit fd6c7d8

Please sign in to comment.