db: drop accepts_chat_messages from users

Another leftover of chats wasting space.
All uses were purged in 0f132b802d.
This commit is contained in:
Oneric 2025-06-20 01:25:04 +02:00
parent 94207c425d
commit 81285d06be
2 changed files with 21 additions and 0 deletions

View file

@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## Unreleased
### REMOVED
- Dropped `accepts_chat_messages` column from users table in database;
it has been unused for almost 3 years
### Added
- We mark our MFM posts as FEP-c16b compliant, and retain remote HTML representations for incoming posts marked as FEP-c16b-compliant. (Safety scrubbers are still applied)
- Prometheus stats now exposes failed ActivityPub deliveries

View file

@ -0,0 +1,17 @@
defmodule Pleroma.Repo.Migrations.DropAcceptsChatMessages do
use Ecto.Migration
def up do
alter table(:users) do
remove(:accepts_chat_messages)
end
end
def down do
alter table(:users) do
add(:accepts_chat_messages, :boolean, nullable: true)
end
execute("update users set accepts_chat_messages = true where local = true")
end
end