Files
honeyDueKMP/iosApp/CaseraUITests/Scripts/cleanup_test_users.sh
Trey t c6eef720ed Rebrand from MyCrib to Casera
- Rename Kotlin package from com.example.mycrib to com.example.casera
- Update Android app name, namespace, and application ID
- Update iOS bundle identifiers and project settings
- Rename iOS directories (MyCribTests -> CaseraTests, etc.)
- Update deep link schemes from mycrib:// to casera://
- Update app group identifiers
- Update subscription product IDs
- Update all UI strings and branding

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 21:10:38 -06:00

37 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Script to clean up test users from Django database
# Usage: ./cleanup_test_users.sh [email]
# If no email provided, cleans up all users with email starting with 'test_'
EMAIL="$1"
cd /Users/treyt/Desktop/code/MyCrib/myCribAPI
if [ -n "$EMAIL" ]; then
FILTER="email='$EMAIL'"
else
FILTER="email__startswith='test_'"
fi
# Try docker exec first (if running in Docker)
if docker ps --format '{{.Names}}' | grep -q 'mycrib-web\|myCrib-web'; then
CONTAINER_NAME=$(docker ps --format '{{.Names}}' | grep -E 'mycrib-web|myCrib-web' | head -1)
docker exec "$CONTAINER_NAME" python manage.py shell -c "
from django.contrib.auth import get_user_model
User = get_user_model()
deleted = User.objects.filter($FILTER).delete()
print(f'Deleted: {deleted}')
" 2>/dev/null
else
# Fallback to local Python
export DJANGO_SETTINGS_MODULE=myCrib.settings
python manage.py shell -c "
from django.contrib.auth import get_user_model
User = get_user_model()
deleted = User.objects.filter($FILTER).delete()
print(f'Deleted: {deleted}')
" 2>/dev/null
fi
echo "Test users cleanup complete"