mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 02:24:55 +03:00
4d55c4657a
* Add daily salt rotation for user ids * Rotate salts on a cron schedule daily * Keep old salt fo 48 hours * Double write for plausible.io to test salt rotation * Rotate salts for every site
12 lines
214 B
Elixir
12 lines
214 B
Elixir
defmodule Plausible.Repo.Migrations.CreateSaltsTable do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create table(:salts) do
|
|
add :salt, :bytea, null: false
|
|
|
|
timestamps(updated_at: false)
|
|
end
|
|
end
|
|
end
|