Align project devices with circuit model
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user