diff options
Diffstat (limited to 'firebase-migration.sh')
-rwxr-xr-x | firebase-migration.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/firebase-migration.sh b/firebase-migration.sh new file mode 100755 index 0000000..ad2f121 --- /dev/null +++ b/firebase-migration.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +dbname="$1" +if test $# -ne 1 -o -n "$1"; then + echo >&2 "Pass database file as command-line argument" + exit 1 +fi + +sqlite3 "$dbname" <<EOF +create table Firebase ( + user integer, + token text +); +create index firebase_user_index on Firebase(user); +EOF |