aboutsummaryrefslogtreecommitdiff
path: root/firebase-migration.sh
blob: ad2f12162f5b5868867cf3c42c7f771500e07745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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