Add pings and seeds

This commit is contained in:
Fergal Moran
2024-01-29 19:25:27 +00:00
parent 88adbdcdc6
commit 40bfb085c6
19 changed files with 276 additions and 78 deletions

18
scripts/reset.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/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 kidarr
echo "Creating db"
createdb kidarr
bun db:generate
bun db:migrate
# bun run src/db/migrate.ts
bun db:seed