Created migration script grant_admin_artur_wiertel.py that: - Finds user by company_id=12 (WATERM) - Sets is_admin=True for the user - Supports --dry-run mode for verification - Includes error handling and rollback To deploy: Run script on production server with www-data user. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
41 lines
1.4 KiB
JSON
41 lines
1.4 KiB
JSON
{
|
|
"feature": "admin-rights-artur-wiertel",
|
|
"workflow_type": "simple",
|
|
"total_phases": 1,
|
|
"recommended_workers": 1,
|
|
"phases": [
|
|
{
|
|
"phase": 1,
|
|
"name": "Grant Admin Privileges",
|
|
"description": "Set is_admin=True for Artur Wiertel's user account",
|
|
"depends_on": [],
|
|
"subtasks": [
|
|
{
|
|
"id": "subtask-1-1",
|
|
"description": "Update user record to set is_admin=True for Artur Wiertel (WATERM owner, company_id=12)",
|
|
"service": "database",
|
|
"status": "completed",
|
|
"files_to_create": [],
|
|
"files_to_modify": [],
|
|
"database_changes": [
|
|
"UPDATE users SET is_admin = TRUE WHERE company_id = 12"
|
|
],
|
|
"patterns_from": [],
|
|
"verification": {
|
|
"type": "manual",
|
|
"run": "Login as Artur Wiertel and verify access to /admin/news"
|
|
},
|
|
"notes": "Created grant_admin_artur_wiertel.py script that safely updates is_admin=True for WATERM owner (company_id=12). Script supports --dry-run mode and includes error handling.",
|
|
"updated_at": "2026-01-06T20:58:16.509339+00:00"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"created_at": "2026-01-06",
|
|
"complexity": "simple",
|
|
"estimated_sessions": 1,
|
|
"notes": "Database-only change, no code modifications needed"
|
|
},
|
|
"last_updated": "2026-01-06T20:58:16.509348+00:00"
|
|
} |