diff options
| author | lain <lain@soykaf.club> | 2020-09-30 14:14:41 +0200 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-09-30 14:14:41 +0200 |
| commit | 90fee49c52799a7d6ad890ecc49d146ab6ad8455 (patch) | |
| tree | d96c65e36ed4365c6e7f2a4093dd4c466ded242d /priv/repo/migrations | |
| parent | 2a11068a11caa33bbd3fc66f175c5511f8ab2eaf (diff) | |
| download | pleroma-90fee49c52799a7d6ad890ecc49d146ab6ad8455.tar.gz pleroma-90fee49c52799a7d6ad890ecc49d146ab6ad8455.zip | |
User search: Once again, change uri handling.
They can indeed be non-unique.
Diffstat (limited to 'priv/repo/migrations')
| -rw-r--r-- | priv/repo/migrations/20200930082320_user_ur_is_index_part_three.exs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/priv/repo/migrations/20200930082320_user_ur_is_index_part_three.exs b/priv/repo/migrations/20200930082320_user_ur_is_index_part_three.exs new file mode 100644 index 000000000..816c6526e --- /dev/null +++ b/priv/repo/migrations/20200930082320_user_ur_is_index_part_three.exs @@ -0,0 +1,8 @@ +defmodule Pleroma.Repo.Migrations.UserURIsIndexPartThree do + use Ecto.Migration + + def change do + drop_if_exists(unique_index(:users, :uri)) + create_if_not_exists(index(:users, :uri)) + end +end |
