migration commands

This commit is contained in:
metamuffin 2024-11-13 20:42:08 +01:00
parent 9122ec18b0
commit 1b026d9e1c
No known key found for this signature in database
GPG key ID: 718F9749DCDBD654

View file

@ -16,3 +16,10 @@ useful for development or proxyless deployments.
- `products` stores the product list as CSV (`barcode,price,user,name`) - `products` stores the product list as CSV (`barcode,price,user,name`)
- `config` stores configuration parameters as ESV (`key=value`) - `config` stores configuration parameters as ESV (`key=value`)
- `transaction_sound`: URL to sound played when creating a transaction - `transaction_sound`: URL to sound played when creating a transaction
## Migration from Strichliste
```
curl 'http://strichliste.example.org/api/user?deleted=false' | jq -r '.users.[] | [ 0, "@Potential", .name, .balance, "", "", "" ] | join(",")' > log
curl 'http://strichliste.example.org/api/article' | jq -r '.articles.[] | [ .barcode, .amount, "@Drinks", .name ] | join(",")' > products
```