diff options
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20191007123056_add_ap_id_column_to_objects.exs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/priv/repo/migrations/20191007123056_add_ap_id_column_to_objects.exs b/priv/repo/migrations/20191007123056_add_ap_id_column_to_objects.exs new file mode 100644 index 000000000..ebc94833c --- /dev/null +++ b/priv/repo/migrations/20191007123056_add_ap_id_column_to_objects.exs @@ -0,0 +1,11 @@ +defmodule Pleroma.Repo.Migrations.AddApIdColumnToObjects do + use Ecto.Migration + + def change do + alter table(:objects) do + add :ap_id, :string + end + + create unique_index(:objects, [:ap_id], concurrently: true) + end +end |