mirror of
https://github.com/fergalmoran/kidarr-server.git
synced 2026-02-21 15:24:03 +00:00
Add pings and seeds
This commit is contained in:
18
scripts/reset.sh
Executable file
18
scripts/reset.sh
Executable 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
|
||||
Reference in New Issue
Block a user