fix(start.sh): option 6 now runs full pipeline (reset → migrate → seed)
- Step 1: Drop all tables - Step 2: Run migrations - Step 3: Seed data - Fixed misleading 'seeded' message
This commit is contained in:
parent
254d7c3216
commit
d2266eb0f9
1 changed files with 9 additions and 1 deletions
10
start.sh
10
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue