25 lines
1.4 KiB
Markdown
25 lines
1.4 KiB
Markdown
---
|
|
id: task-94
|
|
title: Update FA user-post-fav foreign key to reference domain_users_fa_aux table
|
|
status: To Do
|
|
assignee: []
|
|
created_date: '2025-08-20 22:13'
|
|
updated_date: '2025-08-20 22:14'
|
|
labels: []
|
|
dependencies: []
|
|
---
|
|
|
|
## 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
|
|
<!-- AC:BEGIN -->
|
|
- [ ] #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
|
|
<!-- AC:END -->
|