mirror of
https://github.com/fergalmoran/kidarr-server.git
synced 2025-12-22 09:17:51 +00:00
19 lines
409 B
Bash
Executable File
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
|