jojo/models/activities
Gusted d1cef852ee feat: rework notification table (#9926)
This change is motivated by 5e300a2a87

- Drop the `updated_by` and `commit_id` column, they are unused and have a index for no reason.
- Drop the index on `status` and `created_unix` and make a index on `(user_id, status)`.

## Test
1. Run migration.
2. Confirm the migration succeeds.
3. Check that `notification` table has the correct indexes.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9926
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-11-29 23:03:56 +01:00
..
action.go fix: realign indexes on the 'action' table (#10040) 2025-11-18 18:34:25 +01:00
action_list.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
action_test.go chore: Remove IsDeleted from action (activity) table (#9829) 2025-11-08 04:20:05 +01:00
federated_user_activity.go Federated user activity following: Isolated model changes (#8078) 2025-06-21 12:02:58 +02:00
federated_user_activity_test.go Federated user activity following: Isolated model changes (#8078) 2025-06-21 12:02:58 +02:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
notification.go feat: rework notification table (#9926) 2025-11-29 23:03:56 +01:00
notification_list.go feat: rework notification table (#9926) 2025-11-29 23:03:56 +01:00
notification_test.go feat: rework notification table (#9926) 2025-11-29 23:03:56 +01:00
repo_activity.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
repo_activity_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
statistic.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
user_heatmap.go chore: Remove IsDeleted from action (activity) table (#9829) 2025-11-08 04:20:05 +01:00
user_heatmap_test.go chore: Remove IsDeleted from action (activity) table (#9829) 2025-11-08 04:20:05 +01:00