analytics/priv/repo/migrations/20200122150130_add_shared_links.exs
Uku Taht 5f62025176
Shared links (#29)
* Create shared links UI

* Show shared links in a list on settings page

* Show dropdown for each shared link

* Show icon actions for shared links

* Log user in when they click non-password-protected shared link

* Actually authenticate using a password

* Delete shared links
2020-01-29 11:29:11 +02:00

14 lines
313 B
Elixir

defmodule Plausible.Repo.Migrations.AddSharedLinks do
use Ecto.Migration
def change do
create table(:shared_links) do
add :site_id, references(:sites, on_delete: :delete_all), null: false
add :slug, :string, null: false
add :password_hash, :string
timestamps()
end
end
end