aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-11-13 20:42:08 +0100
committermetamuffin <metamuffin@disroot.org>2024-11-13 20:42:16 +0100
commit1b026d9e1cf88fa65f82d0109656561d29889d8e (patch)
tree0938c2b533fb99869ca7137af13eb35da7edf6d4 /readme.md
parent9122ec18b085169ddb186aedd3d7fdfffa26fbbf (diff)
downloadabrechenbarkeit-1b026d9e1cf88fa65f82d0109656561d29889d8e.tar
abrechenbarkeit-1b026d9e1cf88fa65f82d0109656561d29889d8e.tar.bz2
abrechenbarkeit-1b026d9e1cf88fa65f82d0109656561d29889d8e.tar.zst
migration commands
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index 19ee9a0..2d8a6a6 100644
--- a/readme.md
+++ b/readme.md
@@ -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
+```