mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 03:04:43 +03:00
81c12884cd
* Add elixir action * Format the codebase * Add postgresql * Postgres config * Run postgres on localhost * Add clickhouse to CI
15 lines
304 B
Elixir
15 lines
304 B
Elixir
defmodule Plausible.Repo.Migrations.AddEmailVerifiedToUsers do
|
|
use Ecto.Migration
|
|
use Plausible.Repo
|
|
|
|
def change do
|
|
alter table(:users) do
|
|
add :email_verified, :boolean, null: false, default: false
|
|
end
|
|
|
|
flush()
|
|
|
|
Repo.update_all("users", set: [email_verified: true])
|
|
end
|
|
end
|