Files
family-hub/DEPLOY_ALL_IN_UPDATE.bat

76 lines
2.0 KiB
Batchfile

@echo off
cls
echo.
echo ========================================
echo 🚀 ALL-IN UPDATE DEPLOYMENT
echo ========================================
echo.
echo This will:
echo 1. Run database migration
echo 2. Restart backend
echo 3. Show you what's done and what's left
echo.
pause
cd /d D:\Hosted\familyhub
echo.
echo ========================================
echo STEP 1: Running Migration...
echo ========================================
cd backend
python migrations\004_add_assignment_type.py
if %ERRORLEVEL% NEQ 0 (
echo.
echo ❌ Migration failed!
pause
exit /b 1
)
cd ..
echo.
echo ========================================
echo STEP 2: Restarting Backend...
echo ========================================
call restart_backend.bat
echo.
echo ========================================
echo ✅ BACKEND UPDATE COMPLETE!
echo ========================================
echo.
echo What's been done:
echo ✅ Database has assignment_type column
echo ✅ Backend models updated
echo ✅ Admin avatar upload endpoints added
echo ✅ Public API supports helpers + claiming
echo ✅ Frontend API services updated
echo ✅ Frontend interfaces updated
echo ✅ AvatarUpload supports admin mode
echo.
echo ========================================
echo ⏳ REMAINING TASKS
echo ========================================
echo.
echo These files need quick manual updates:
echo.
echo 1. Settings.tsx - Add userId to AvatarUpload (2 min)
echo 2. CreateChoreModal.tsx - Add assignment type select (5 min)
echo 3. EditChoreModal.tsx - Add assignment type select (5 min)
echo 4. KioskView.tsx - Full rewrite with new features (30 min)
echo.
echo Total time to finish: ~40 minutes
echo.
echo ========================================
echo 💡 WHAT YOU CAN TEST NOW:
echo ========================================
echo.
echo ✅ Admin avatar upload works (backend ready!)
echo ✅ Assignment types in database (need UI)
echo ✅ Helper tracking works (backend ready!)
echo ✅ Claiming chores works (backend ready!)
echo.
echo Next: Create remaining 4 frontend files?
echo.
pause