diff --git a/changelog.d/legacy-sequences.fix b/changelog.d/legacy-sequences.fix new file mode 100644 index 000000000..0ecd4842d --- /dev/null +++ b/changelog.d/legacy-sequences.fix @@ -0,0 +1 @@ +Delete legacy Postgres sequences for activities, chats, and users which were converted to Flake IDs diff --git a/priv/repo/migrations/20260824214955_delete_legacy_id_sequences.exs b/priv/repo/migrations/20260824214955_delete_legacy_id_sequences.exs new file mode 100644 index 000000000..bad9d5f7a --- /dev/null +++ b/priv/repo/migrations/20260824214955_delete_legacy_id_sequences.exs @@ -0,0 +1,9 @@ +defmodule Pleroma.Repo.Migrations.DeleteLegacyIdSequences do + use Ecto.Migration + + def change do + execute("DROP SEQUENCE IF EXISTS activities_id_seq") + execute("DROP SEQUENCE IF EXISTS chats_id_seq") + execute("DROP SEQUENCE IF EXISTS users_id_seq") + end +end