Task 003: add postgres schema and seed data
This commit is contained in:
@@ -2,3 +2,17 @@
|
||||
|
||||
Database, cache, object storage, queue, and other external adapters belong in
|
||||
this layer.
|
||||
|
||||
## Database
|
||||
|
||||
Run migrations from the repository root:
|
||||
|
||||
```bash
|
||||
DATABASE_URL=postgresql://pipeline:pipeline_local@localhost:5432/pipeline alembic upgrade head
|
||||
```
|
||||
|
||||
`POSTGRES_DSN` is also supported. Reference data can be seeded with:
|
||||
|
||||
```bash
|
||||
DATABASE_URL=postgresql://pipeline:pipeline_local@localhost:5432/pipeline make seed
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user