Fix dids dumping

main
Max Ignatenko 2024-02-21 17:40:23 +00:00
parent 59e343355e
commit 9a520c186e
1 changed files with 2 additions and 2 deletions

View File

@ -70,10 +70,10 @@ EOF
echo "Dumping DIDs..." echo "Dumping DIDs..."
docker compose exec -it postgres psql -U postgres -d bluesky \ docker compose exec -it postgres psql -U postgres -d bluesky \
-c "copy (${posts_query}) to stdout with csv header;" > dids.csv -c "${dids_query}" > dids.csv
echo "Done: $(ls -lh dids.csv)" echo "Done: $(ls -lh dids.csv)"
docker exec -it plc-postgres-1 psql -U postgres -d plc \ docker exec -it plc-postgres-1 psql -U postgres -d plc \
-c 'copy (select handle, did as "did:ID" from actors) to stdout with (format csv , header, force_quote ("handle"));' > handles.csv -c 'copy (select handle, did as "did:ID" from actors) to stdout with (format csv , header, force_quote ("handle"));' > handles.csv
# ------------------------------ HANDLES ---------------------------------- # ------------------------------ HANDLES ----------------------------------