diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-08-11 09:52:28 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-08-11 10:27:07 -0500 |
commit | ff4e282aad09954db5d7e234923854a21a002128 (patch) | |
tree | 63a4e656058aeeeaf30875a34384a0a74892a8a6 /priv/repo/migrations/20200811143147_ap_id_not_null.exs | |
parent | c66f6bd0ad130eb59c3c1e7edfbbddddf6772864 (diff) | |
download | pleroma-ff4e282aad09954db5d7e234923854a21a002128.tar.gz pleroma-ff4e282aad09954db5d7e234923854a21a002128.zip |
Ensure ap_id column in users table cannot be null
Diffstat (limited to 'priv/repo/migrations/20200811143147_ap_id_not_null.exs')
-rw-r--r-- | priv/repo/migrations/20200811143147_ap_id_not_null.exs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/priv/repo/migrations/20200811143147_ap_id_not_null.exs b/priv/repo/migrations/20200811143147_ap_id_not_null.exs new file mode 100644 index 000000000..3e5d27fe1 --- /dev/null +++ b/priv/repo/migrations/20200811143147_ap_id_not_null.exs @@ -0,0 +1,13 @@ +defmodule Pleroma.Repo.Migrations.ApIdNotNull do + use Ecto.Migration + + def up do + alter table(:users) do + modify(:ap_id, :string, null: false) + end + end + + def down do + :ok + end +end |