mirror of
https://github.com/plausible/analytics.git
synced 2024-12-27 19:47:26 +03:00
14 lines
313 B
Elixir
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
|