From d2266eb0f9602f0420940392caebd47e5e8e86fa Mon Sep 17 00:00:00 2001 From: Tiago Yamamoto Date: Wed, 24 Dec 2025 10:53:19 -0300 Subject: [PATCH] =?UTF-8?q?fix(start.sh):=20option=206=20now=20runs=20full?= =?UTF-8?q?=20pipeline=20(reset=20=E2=86=92=20migrate=20=E2=86=92=20seed)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Step 1: Drop all tables - Step 2: Run migrations - Step 3: Seed data - Fixed misleading 'seeded' message --- start.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 1308999..2aabd07 100755 --- a/start.sh +++ b/start.sh @@ -186,8 +186,16 @@ case $choice in read -p "Are you sure? [y/N]: " confirm if [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]]; then + echo -e "\n${BLUE}🔹 Step 1/3: Dropping all tables...${NC}" npm run seed:reset - echo -e "\n${GREEN}✅ Database reset and seeded!${NC}" + + echo -e "\n${BLUE}🔹 Step 2/3: Running migrations...${NC}" + npm run migrate + + echo -e "\n${BLUE}🔹 Step 3/3: Seeding data...${NC}" + npm run seed + + echo -e "\n${GREEN}✅ Database fully reset and seeded!${NC}" else echo -e "${YELLOW}Cancelled.${NC}" fi