mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-12 13:56:53 +00:00
15 lines
282 B
Elixir
15 lines
282 B
Elixir
|
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
|