mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-22 06:36:16 +00:00
Apps: add user_id index
This commit is contained in:
parent
f5c3d45120
commit
fa35e24a5e
|
@ -5,5 +5,7 @@ defmodule Pleroma.Repo.Migrations.AddUserIdToApps do
|
|||
alter table(:apps) do
|
||||
add(:user_id, references(:users, type: :uuid, on_delete: :delete_all))
|
||||
end
|
||||
|
||||
create_if_not_exists(index(:apps, [:user_id]))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue