Refactor migrations across multiple apps to remove and add triggers for event logging, ensuring consistency in data handling. Updated park and ride event tables, added new columns, and optimized user-generated content workflows. Enhanced moderation processes and improved overall database integrity.

This commit is contained in:
pacnpal
2025-09-20 09:46:09 -04:00
parent 401449201c
commit 8900716215
28 changed files with 13188 additions and 346 deletions

View File

@@ -1,16 +1,21 @@
# Active Context
## Current Focus
- Moderation system development and enhancement
- Dashboard interface improvements
- Submission review workflow
- Database schema synchronization and fixes
- Parks model and pghistory integration
- Ensuring model-database consistency
## Recent Changes
Working on moderation system components:
- Dashboard interface
- Submission list views
- Moderation navigation
- Content review workflow
Fixed critical database schema mismatch in parks app:
- Updated Park model to include operator and property_owner fields
- Added missing owner_id column to parks_parkevent table
- Fixed pghistory triggers that were failing due to missing columns
- Resolved park detail page errors (parks/magic-kingdom/ now working)
### Schema Updates Made
- parks/models.py: Added operator and property_owner ForeignKey fields
- parks/migrations/0006_auto_20250920_0944.py: Added owner_id column to parks_parkevent table
- Database now properly supports all three ownership relationships: owner, operator, property_owner
## Active Files