1 defmodule Pleroma.Repo.Migrations.SetNotNullForConversationParticipations do
4 # modify/3 function will require index recreation, so using execute/1 instead
7 execute("ALTER TABLE conversation_participations
8 ALTER COLUMN user_id SET NOT NULL,
9 ALTER COLUMN conversation_id SET NOT NULL,
10 ALTER COLUMN read SET NOT NULL")
14 execute("ALTER TABLE conversation_participations
15 ALTER COLUMN user_id DROP NOT NULL,
16 ALTER COLUMN conversation_id DROP NOT NULL,
17 ALTER COLUMN read DROP NOT NULL")