mirror of
https://github.com/plausible/analytics.git
synced 2024-12-27 19:47:26 +03:00
16 lines
308 B
Elixir
16 lines
308 B
Elixir
|
defmodule Plausible.Repo.Migrations.AddNameToSharedLinks do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
alter table(:shared_links) do
|
||
|
add :name, :string
|
||
|
end
|
||
|
|
||
|
execute "UPDATE shared_links SET name=slug"
|
||
|
|
||
|
alter table(:shared_links) do
|
||
|
modify :name, :string, null: false
|
||
|
end
|
||
|
end
|
||
|
end
|