mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2025-01-04 06:24:37 +00:00
12 lines
227 B
Elixir
12 lines
227 B
Elixir
|
defmodule Mobilizon.Storage.Repo.Migrations.AddIndexToPosts do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def up do
|
||
|
create_if_not_exists(unique_index("posts", [:url]))
|
||
|
end
|
||
|
|
||
|
def down do
|
||
|
drop_if_exists(index("posts", [:url]))
|
||
|
end
|
||
|
end
|