forked from jappel/leistungsbilanz-ts
Align project devices with circuit model
This commit is contained in:
parent
689cfd3c65
commit
9d07ed9856
16 changed files with 301 additions and 106 deletions
|
|
@ -10,7 +10,8 @@ This project uses SQLite at `data/leistungsbilanz.db` and Drizzle migrations in
|
|||
npm run db:backup
|
||||
```
|
||||
|
||||
2. Apply pending schema migrations (includes `0008_circuit_first_model`)
|
||||
2. Apply pending schema migrations (includes `0008_circuit_first_model` and the additive
|
||||
`0009_project_device_circuit_fields` transition)
|
||||
|
||||
```bash
|
||||
npm run db:migrate
|
||||
|
|
@ -52,6 +53,8 @@ WHERE type = 'table'
|
|||
ORDER BY name;
|
||||
```
|
||||
|
||||
The verification command also checks the circuit-first project-device columns added by migration `0009`.
|
||||
|
||||
```sql
|
||||
SELECT circuit_list_id, key, prefix, sort_order
|
||||
FROM circuit_sections
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue