Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

20 rindas
539B

  1. defmodule Pleroma.Repo.Migrations.SetNotNullForPasswordResetTokens do
  2. use Ecto.Migration
  3. # modify/3 function will require index recreation, so using execute/1 instead
  4. def up do
  5. execute("ALTER TABLE password_reset_tokens
  6. ALTER COLUMN token SET NOT NULL,
  7. ALTER COLUMN user_id SET NOT NULL,
  8. ALTER COLUMN used SET NOT NULL")
  9. end
  10. def down do
  11. execute("ALTER TABLE password_reset_tokens
  12. ALTER COLUMN token DROP NOT NULL,
  13. ALTER COLUMN user_id DROP NOT NULL,
  14. ALTER COLUMN used DROP NOT NULL")
  15. end
  16. end