aboutsummaryrefslogtreecommitdiff
path: root/bin/db
diff options
context:
space:
mode:
Diffstat (limited to 'bin/db')
-rwxr-xr-xbin/db26
1 files changed, 0 insertions, 26 deletions
diff --git a/bin/db b/bin/db
deleted file mode 100755
index 186f83d..0000000
--- a/bin/db
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-cd $(dirname "$0")/..
-
-DB_PATH="database.db"
-
-if [ "$1" == "init" ]; then
-
- if [ -f "$DB_PATH" ]; then
- rm "$DB_PATH"
- fi
-
- for MIGRATION in $(ls sql/migrations/*.sql); do
- printf "\n- Applying $MIGRATION\n\n"
- sqlite3 database.db < "$MIGRATION"
- done
-
- printf "\n- Applying sql/fixtures.sql\n\n"
- sqlite3 database.db < sql/fixtures.sql
-
-else
-
- echo "Usage: $0 init"
- exit 1
-
-fi