2017-05-02 04:43:35 -04:00
|
|
|
defmodule Pleroma.Repo.Migrations.AddLocalFieldToActivities do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
|
|
|
alter table(:activities) do
|
|
|
|
add :local, :boolean, default: true
|
|
|
|
end
|
|
|
|
|
2019-06-30 21:08:07 -04:00
|
|
|
create_if_not_exists index(:activities, [:local])
|
2017-05-02 04:43:35 -04:00
|
|
|
end
|
|
|
|
end
|