summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-08-11 09:52:28 -0500
committerMark Felder <feld@FreeBSD.org>2020-08-11 10:27:07 -0500
commitff4e282aad09954db5d7e234923854a21a002128 (patch)
tree63a4e656058aeeeaf30875a34384a0a74892a8a6 /priv
parentc66f6bd0ad130eb59c3c1e7edfbbddddf6772864 (diff)
Ensure ap_id column in users table cannot be null
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20200811143147_ap_id_not_null.exs13
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