Files
kidarr-server/scripts/reset.sh
2024-02-01 20:43:23 +00:00

20 lines
331 B
Bash
Executable File

#!/usr/bin/env bash
export PGUSER=postgres
export PGPASSWORD=hackme
export PGHOST=localhost
echo Removing migrations
rm -rf drizzle
echo "Dropping db"
echo "Dropping production db"
dropdb -f --if-exists kidarr
echo "Creating production db"
createdb kidarr
bun db:generate
bun db:migrate
# bun run src/db/migrate.ts
bun db:seed