1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Repo.Migrations.ChangeTypeToEnumForNotifications do
10 create type notification_type as enum (
15 'pleroma:emoji_reaction',
16 'pleroma:chat_mention',
24 alter table notifications
25 alter column type type notification_type using (type::notification_type)
31 alter table(:notifications) do
32 modify(:type, :string)
36 drop type notification_type