Skip to content

Conversation

@kargig
Copy link
Owner

@kargig kargig commented Jan 9, 2026

  • Update Newsletter model to use LONGTEXT for content to prevent data truncation and match production schema.
  • Enhance migration 0057 with robust idempotency using safe constraint and foreign key operations to handle environmental inconsistencies.
  • Add migration 0058 to resolve remaining schema drift and restore missing foreign keys.
  • Implement data repair logic in 0058 to delete orphaned refresh tokens and reassign orphaned site ratings/comments to an admin user, ensuring foreign key constraints can be successfully applied.

- Update Newsletter model to use LONGTEXT for content to prevent data
  truncation and match production schema.
- Enhance migration 0057 with robust idempotency using safe constraint
  and foreign key operations to handle environmental inconsistencies.
- Add migration 0058 to resolve remaining schema drift and restore
  missing foreign keys.
- Implement data repair logic in 0058 to delete orphaned refresh
  tokens and reassign orphaned site ratings/comments to an admin user,
  ensuring foreign key constraints can be successfully applied.
@kargig kargig merged commit 4e5e409 into main Jan 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants