Files
kidarr-server/scripts/reset.sh
2023-12-23 16:44:11 +00:00

19 lines
409 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"
dropdb -f --if-exists parentgrine
echo "Creating db"
createdb parentgrine
bunx drizzle-kit generate:pg --config=./drizzle.config.ts
bunx drizzle-kit push:pg --config=./drizzle.config.ts
# bun run src/db/migrate.ts
bun run ./src/server/db/scripts/seed.ts