aboutsummaryrefslogtreecommitdiff
path: root/firebase-migration.sh
blob: c153f4c0e5939adfbecb4f0eb77bbe8e182412a1 (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 -z "$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