From 6d493f8c46dc56f0cad7f78278b9623142853227 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Mon, 5 Aug 2024 19:00:46 +1000 Subject: [PATCH] Change invocation of DB commands --- script/setup | 2 +- script/update | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/script/setup b/script/setup index 36cda2e..e01ab38 100755 --- a/script/setup +++ b/script/setup @@ -19,7 +19,7 @@ else script/bootstrap echo "==> Setting up database..." - bin/hanami db setup + hanami db structure load echo "==> App is now ready to go!" fi diff --git a/script/update b/script/update index 47bab08..7a26ed9 100755 --- a/script/update +++ b/script/update @@ -9,9 +9,9 @@ cd "$(dirname "$0")/.." script/bootstrap echo "==> Updating db…" -bin/hanami db create +hanami db create -bin/hanami db create -e test -bin/hanami db reset -e test +hanami db create -e test +hanami db reset -e test -bin/hanami db migrate +hanami db migrate