diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e657ec5a..25546315d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/priv/repo/migrations/20250621000000_drop_accepts_chat_messages.exs b/priv/repo/migrations/20250621000000_drop_accepts_chat_messages.exs new file mode 100644 index 000000000..157d1fa98 --- /dev/null +++ b/priv/repo/migrations/20250621000000_drop_accepts_chat_messages.exs @@ -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