This commit is contained in:
Fergal Moran
2024-01-31 20:38:30 +00:00
parent bb67e85a80
commit 52ea6bb122
8 changed files with 22 additions and 7 deletions

View File

@@ -7,9 +7,12 @@ echo Removing migrations
rm -rf drizzle
echo "Dropping db"
dropdb -f --if-exists kidarr
echo "Creating db"
createdb kidarr
if $NODE_NEV ne "production"; then
echo "Dropping production db"
dropdb -f --if-exists kidarr
echo "Creating production db"
createdb kidarr
fi
bun db:generate
bun db:migrate