mirror of
https://codeberg.org/metamuffin/abrechenbarkeit.git
synced 2024-12-28 07:54:35 +00:00
migration commands
This commit is contained in:
parent
9122ec18b0
commit
1b026d9e1c
1 changed files with 7 additions and 0 deletions
|
@ -16,3 +16,10 @@ useful for development or proxyless deployments.
|
|||
- `products` stores the product list as CSV (`barcode,price,user,name`)
|
||||
- `config` stores configuration parameters as ESV (`key=value`)
|
||||
- `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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue