Commit Graph

484 Commits (8ea2726376ed9507072a8e2ec07fdfc219264dad)

Author SHA1 Message Date
Claire 00cf8d3748
Change older Paperclip database migrations for consistency () 2024-05-20 14:59:27 +00:00
Claire 2bcbeed951
Add some error handling to OTP secret migration () 2024-05-20 14:59:23 +00:00
Claire 1959365c2f
Add missing `on_delete: :cascade` on `notification_policies` () 2024-05-10 20:00:25 +00:00
Claire 96fb6e491f
Revert "Migrate paperclip `_file_size` columns to bigint ()" () 2024-05-07 08:46:05 +00:00
Matt Jankowski b152f936c1
Migrate paperclip `_file_size` columns to bigint ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-05-06 15:05:12 +00:00
Matt Jankowski 1e7d5d2957
Update `devise-two-factor` to version 5.0.0 ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-05-02 09:31:41 +00:00
Matt Jankowski d9eee9bf9a
Remove column defaults for `status_pins` timestamp columns () 2024-04-24 14:56:54 +00:00
Matt Jankowski 2ec9bff36e
Fix Rubocop `Rails/UniqueValidationWithoutIndex` cop ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-04-22 08:04:05 +00:00
Claire 5915bd7f45
Fix development environment admin account not being auto-approved () 2024-04-16 17:30:32 +00:00
Claire de740dfb9c
Use `upsert_all` and `insert_all` to reduce back-and-forth in costly migrations () 2024-03-26 15:57:08 +00:00
Claire 58376eedda
Remove obsolete `admin` and `moderator` columns from `users` table () 2024-03-22 16:22:36 +00:00
Claire dfa43707eb
Change `AccountRelationshipSeveranceEvent` model to store lost followers and following counts separately () 2024-03-22 15:44:31 +00:00
Claire 70a8fcf07d
Fix notification policy migration not preserving `filter_private_mentions` correctly () 2024-03-21 21:52:29 +00:00
Claire 954b470fbc
Fix error when attempting to delete posts that triggered a notification request () 2024-03-20 16:48:24 +00:00
Claire d4449cc682
Fix account_relationship_severance_events unique indexes () 2024-03-20 16:08:34 +00:00
Claire 44bf7b8128
Add notifications of severed relationships () 2024-03-20 15:37:21 +00:00
Eugen Rochko 5b3a8737d6
Add hints for rules () 2024-03-11 08:57:07 +00:00
Eugen Rochko e85a2aa18d
Fix interaction settings migration error when encountering no settings () 2024-03-08 09:10:07 +00:00
Eugen Rochko 50b17f7e10
Add notification policies and notification requests () 2024-03-07 14:53:37 +00:00
Matt Jankowski 245064bb98
Move "everyone" role and "instance actor" account magic number IDs to constants () 2024-02-19 11:09:43 +00:00
Matt Jankowski 1e0b0a3486
Use SQL heredoc on long statement lines in migrations () 2024-02-06 16:42:25 +00:00
Matt Jankowski dedefdc303
Move length value mapping to constant in ids to bigints migration () 2024-02-06 11:40:24 +00:00
Matt Jankowski 0bec5c0755
Remove migration base class switcher from `RailsSettingsMigration` () 2024-02-06 09:56:24 +00:00
Eugen Rochko fa0ba67753
Change materialized views to be refreshed concurrently to avoid locks () 2024-01-30 18:21:30 +00:00
Eugen Rochko 5b1eb09d54
Add annual reports for accounts () 2024-01-24 09:38:10 +00:00
Matt Jankowski f0b93ab02f
Use AR `database_version` in PG version checks in migrations () 2024-01-18 16:11:50 +00:00
Matt Jankowski ea1c0feb86
Remove `add_column_with_default` migration helper () 2024-01-10 10:35:06 +00:00
gunchleoc 173953c23e
Fix ISO code for Canadian French ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2024-01-09 10:56:13 +00:00
Matt Jankowski ae39bed95b
Solve remaining `db/*migrate*` cops () 2024-01-04 16:40:28 +00:00
Claire dfdadb92e8
Add ability to require approval when users sign up using specific email domains () 2024-01-04 09:07:05 +00:00
Matt Jankowski 51d2b80ff7
Solve `Abc/*` metrics for `db/*migrate*` files () 2024-01-03 13:22:03 +00:00
Eugen Rochko b5ac61b2c5
Change algorithm of follow recommendations ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-12-19 10:59:43 +00:00
Matt Jankowski 3e336fe706
Opt out of `Rails/SkipsModelValidations` cop in db/migrate () 2023-12-15 14:38:12 +00:00
Matt Jankowski 469ee2ae36
Fix `Style/HashEachMethods` cop () 2023-12-01 16:07:19 +00:00
Eugen Rochko 0d14fcebae
Change link previews to keep original URL from the status () 2023-11-13 09:58:28 +00:00
Matt Jankowski c501d626e8
Fix `Rails/BulkChangeTable` cop () 2023-11-06 16:15:48 +00:00
Matt Jankowski bcd0171e5e
Fix `Lint/UselessAssignment` cop () 2023-10-19 16:55:06 +02:00
Matt Jankowski a1b27d8b61
Fix `Naming/VariableNumber` cop () 2023-10-18 14:26:22 +02:00
Claire 890e334703
Add migration tests for negative settings () 2023-09-21 12:33:30 +02:00
Claire abcc0b38fa
Fix incorrect PostgreSQL version check () 2023-09-19 17:31:58 +02:00
Claire 81caafbe84
Fix performances of profile directory () 2023-09-07 18:55:25 +02:00
Claire cab4cbfa5c
Fix “Scoped order is ignored, it's forced to be batch order.” warnings () 2023-09-05 15:37:23 +02:00
Claire cddef4c485
Fix language settings for users having selected the `kmr` language () 2023-09-04 17:56:31 +02:00
Claire 16681e0f20
Add admin notifications for new Mastodon versions () 2023-09-01 17:47:07 +02:00
Claire 1471be8225
Fix `AddUniqueIndexOnPreviewCardsStatuses` migration requiring PostgreSQL 12+ in some cases () 2023-08-31 15:47:30 +02:00
Claire ee702e36e5
Change follow recommendation materialized view to be faster in most cases ()
Co-authored-by: Renaud Chaput <renchap@gmail.com>
2023-08-18 18:20:55 +02:00
Claire 90ec88d58b
Add support for `indexable` attribute on remote actors ()
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
2023-08-14 18:54:51 +02:00
Claire 8c7f3c5332
Remove old non-unique index on preview_cards statuses join table () 2023-08-14 09:38:08 +02:00
Matt Jankowski 271d384fd0
Use migration classes in migrations where current definition conflicts with older () 2023-08-09 11:26:42 +02:00
Claire 4773d7b9aa
Fix `preview_cards_statuses_pkey` not being reindexed concurrently () 2023-08-08 11:41:53 +02:00