Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

16 строки
389B

  1. defmodule Pleroma.Repo.Migrations.SetNotNullForScheduledActivities 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 scheduled_activities
  6. ALTER COLUMN user_id SET NOT NULL")
  7. end
  8. def down do
  9. execute("ALTER TABLE scheduled_activities
  10. ALTER COLUMN user_id DROP NOT NULL")
  11. end
  12. end