Files
redux-scraper/backlog/tasks/task-94 - Update-FA-user-post-fav-foreign-key-to-reference-domain_users_fa_aux-table.md
2025-08-20 22:14:04 +00:00

1.4 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies
id title status assignee created_date updated_date labels dependencies
task-94 Update FA user-post-fav foreign key to reference domain_users_fa_aux table To Do
2025-08-20 22:13 2025-08-20 22:14

Description

Change the foreign key constraint on domain_user_post_favs_fa.user_id from pointing to domain_users table to domain_users_fa_aux.base_table_id to properly reference the auxiliary table used for FA users. This ensures referential integrity aligns with the FA-specific user data structure and follows the auxiliary table pattern used throughout the application.

Acceptance Criteria

  • #1 Foreign key constraint on domain_user_post_favs_fa.user_id points to domain_users_fa_aux.base_table_id instead of domain_users.id,Migration includes proper rollback functionality,All existing data relationships remain intact after migration,Tests verify foreign key constraint works correctly,No data is lost during the migration process
  • #2 Foreign key constraint on domain_user_post_favs_fa.user_id points to domain_users_fa_aux.base_table_id instead of domain_users.id
  • #3 Migration includes proper rollback functionality
  • #4 All existing data relationships remain intact after migration
  • #5 Tests verify foreign key constraint works correctly
  • #6 No data is lost during the migration process