Revert subscription refactoring.
As discussed in pleroma-meta#2 This reverts commiteb9aa7aa10, reversing changes made toc4fbb56984.
This commit is contained in:
parent
6d74a7528c
commit
e9d1aa75d5
14 changed files with 11 additions and 709 deletions
|
|
@ -1,15 +0,0 @@
|
|||
defmodule Pleroma.Repo.Migrations.CreateSubscriptionNotifications do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create_if_not_exists table(:subscription_notifications) do
|
||||
add(:user_id, references(:users, type: :uuid, on_delete: :delete_all))
|
||||
add(:activity_id, references(:activities, type: :uuid, on_delete: :delete_all))
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
create_if_not_exists(index(:subscription_notifications, [:user_id]))
|
||||
create_if_not_exists(index(:subscription_notifications, ["id desc nulls last"]))
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue