summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20240207035927_create_rich_media_card.exs
blob: b5e48bccb6b6d15aedc9d2445ffa92365dfc5a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
defmodule Pleroma.Repo.Migrations.CreateRichMediaCard do
  use Ecto.Migration

  def change do
    create table(:rich_media_card) do
      add(:url_hash, :bytea)
      add(:fields, :map)

      timestamps()
    end

    create(unique_index(:rich_media_card, [:url_hash]))
  end
end