docs: fix DB migration, add sqlite migration helper script

This commit is contained in:
Austin Alvarado
2023-03-22 10:07:10 -06:00
committed by GitHub
parent 05dbe6818d
commit 834d68a47e
2 changed files with 28 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
#! /bin/bash
tables=("users" "groups" "memberships" "jwt_refresh_storage" "jwt_storage" "password_reset_tokens")
echo ".header on"
for table in ${tables[@]}; do
echo ".mode insert $table"
echo "select * from $table;"
done