1
Fork 0

Fix tests

This commit is contained in:
prescientmoon 2024-09-09 18:36:56 +02:00
parent ac4145ee40
commit ee02e2c80d
Signed by: prescientmoon
SSH key fingerprint: SHA256:WFp/cO76nbarETAoQcQXuV+0h7XJsEsOCI0UsyPIy6U
5 changed files with 24 additions and 8 deletions

View file

@ -6,8 +6,10 @@ if [ "$#" != 2 ]; then
exit 1
fi
from="$1/db.sqlite"
to ="$2/db.sqlite"
a="$1/db.sqlite"
b="$2/db.sqlite"
sqlite3 $from ".dump songs" | sqlite3 $to
sqlite3 $from ".dump charts" | sqlite3 $to
sqlite3 $b "DROP TABLE songs"
sqlite3 $b "DROP TABLE charts"
sqlite3 $a ".dump songs" | sqlite3 $b
sqlite3 $a ".dump charts" | sqlite3 $b