Rebrand from Casera/MyCrib to honeyDue
Total rebrand across KMM project: - Kotlin package: com.example.casera -> com.tt.honeyDue (dirs + declarations) - Gradle: rootProject.name, namespace, applicationId - Android: manifest, strings.xml (all languages), widget resources - iOS: pbxproj bundle IDs, Info.plist, entitlements, xcconfig - iOS directories: Casera/ -> HoneyDue/, CaseraTests/ -> HoneyDueTests/, etc. - Swift source: all class/struct/enum renames - Deep links: casera:// -> honeydue://, .casera -> .honeydue - App icons replaced with honeyDue honeycomb icon - Domains: casera.treytartt.com -> honeyDue.treytartt.com - Bundle IDs: com.tt.casera -> com.tt.honeyDue - Database table names preserved Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
36
iosApp/HoneyDueUITests/Scripts/cleanup_test_users.sh
Executable file
36
iosApp/HoneyDueUITests/Scripts/cleanup_test_users.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user