summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2018-12-03 00:34:04 +0300
committerrinpatch <rinpatch@sdf.org>2018-12-03 00:34:04 +0300
commit343b0adfa6c88f0934d788be0e59ea8a5fe483b1 (patch)
treea6debba90a247854543aad4069f1b2e3d9ebd1b1 /priv
parenta3953ca37ab4122772119ae345705e712e23dd17 (diff)
parent371d96b1da85960dafea9665b8bc32ba553b1555 (diff)
downloadpleroma-343b0adfa6c88f0934d788be0e59ea8a5fe483b1.tar.gz
pleroma-343b0adfa6c88f0934d788be0e59ea8a5fe483b1.zip
Merge branch 'develop' into fix/theora-detection-read-bytes
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20181201104428_add_uuid_extension.exs7
-rw-r--r--priv/repo/migrations/20181201105617_add_uui_ds_to_user_info.exs7
2 files changed, 14 insertions, 0 deletions
diff --git a/priv/repo/migrations/20181201104428_add_uuid_extension.exs b/priv/repo/migrations/20181201104428_add_uuid_extension.exs
new file mode 100644
index 000000000..2509e558d
--- /dev/null
+++ b/priv/repo/migrations/20181201104428_add_uuid_extension.exs
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.AddUUIDExtension do
+ use Ecto.Migration
+
+ def change do
+ execute("create extension if not exists \"uuid-ossp\"")
+ end
+end
diff --git a/priv/repo/migrations/20181201105617_add_uui_ds_to_user_info.exs b/priv/repo/migrations/20181201105617_add_uui_ds_to_user_info.exs
new file mode 100644
index 000000000..9571a1e4d
--- /dev/null
+++ b/priv/repo/migrations/20181201105617_add_uui_ds_to_user_info.exs
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.AddUUIDsToUserInfo do
+ use Ecto.Migration
+
+ def change do
+ execute("update users set info = jsonb_set(info, '{\"id\"}', to_jsonb(uuid_generate_v4()))")
+ end
+end