diff options
Diffstat (limited to 'priv')
3 files changed, 31 insertions, 0 deletions
| diff --git a/priv/repo/migrations/20190412052952_add_user_info_fields.exs b/priv/repo/migrations/20190412052952_add_user_info_fields.exs new file mode 100644 index 000000000..646c91f32 --- /dev/null +++ b/priv/repo/migrations/20190412052952_add_user_info_fields.exs @@ -0,0 +1,20 @@ +defmodule Pleroma.Repo.Migrations.AddEmailNotificationsToUserInfo do +  use Ecto.Migration + +  def up do +    execute(" +    UPDATE users +    SET info = info || '{ +      \"email_notifications\": { +        \"digest\": false +      } +    }'") +  end + +  def down do +    execute(" +      UPDATE users +      SET info = info - 'email_notifications' +    ") +  end +end diff --git a/priv/repo/migrations/20190413085040_add_signin_and_last_digest_dates_to_user.exs b/priv/repo/migrations/20190413085040_add_signin_and_last_digest_dates_to_user.exs new file mode 100644 index 000000000..4312b171f --- /dev/null +++ b/priv/repo/migrations/20190413085040_add_signin_and_last_digest_dates_to_user.exs @@ -0,0 +1,9 @@ +defmodule Pleroma.Repo.Migrations.AddSigninAndLastDigestDatesToUser do +  use Ecto.Migration + +  def change do +    alter table(:users) do +      add(:last_digest_emailed_at, :naive_datetime, default: fragment("now()")) +    end +  end +end diff --git a/priv/templates/sample_config.eex b/priv/templates/sample_config.eex index ca9c7a2c2..dc75d4008 100644 --- a/priv/templates/sample_config.eex +++ b/priv/templates/sample_config.eex @@ -68,3 +68,5 @@ config :pleroma, Pleroma.Uploaders.Local, uploads: "<%= uploads_dir %>"  # For using third-party S3 clones like wasabi, also do:  # config :ex_aws, :s3,  #   host: "s3.wasabisys.com" + +config :joken, default_signer: "<%= jwt_secret %>" | 
