Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
345B

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