1 defmodule Pleroma.Repo.Migrations.ChangeTypeToEnumForNotifications do
6 create type notification_type as enum (
11 'pleroma:emoji_reaction',
12 'pleroma:chat_mention',
20 alter table notifications
21 alter column type type notification_type using (type::notification_type)
27 alter table(:notifications) do
28 modify(:type, :string)
32 drop type notification_type