some data can be interpreted by grep as binary data and would be dropped if the `-a` flag isn't set

Ludwig Behm 2023-01-05 22:37:21 +01:00
parent 09d91ef7ff
commit 0b025d6793
1 changed files with 1 additions and 1 deletions

@ -39,7 +39,7 @@ mysqldump \
--no-create-info \
--hex-blob \
--skip-quote-names <database> \
| grep "^INSERT INTO" | grep -v "__diesel_schema_migrations" \
| grep -a "^INSERT INTO" | grep -a -v "__diesel_schema_migrations" \
| sed 's#\\"#"#gm' \
| sed -sE "s#,0x([^,]*)#,X'\L\1'#gm" \
> mysql-to-sqlite.sql