Socket stuff with models re-added

This commit is contained in:
Fergal Moran
2024-01-28 14:51:00 +00:00
parent eea4e7d058
commit 459f244b95
124 changed files with 2744 additions and 1652 deletions

View File

@@ -1,19 +0,0 @@
#!/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
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
bun run ./src/server/db/scripts/auth.ts