mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 01:54:34 +03:00
58cff47b6f
* Add name to shared links * Add changelog entry
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
|