diff options
| author | Mark Felder <feld@FreeBSD.org> | 2020-09-25 10:48:01 -0500 | 
|---|---|---|
| committer | Mark Felder <feld@FreeBSD.org> | 2020-09-25 10:48:01 -0500 | 
| commit | 2bf2c68dee1385cba906fe95bd2af3afd2a341b9 (patch) | |
| tree | d9c1fed6298705d59c5108d52e452922fbdd699b /priv/repo/migrations | |
| parent | 88653c01c92fffb396e32edad203d18607980c04 (diff) | |
| parent | 5cd71208d9b273535f978559011377e703e82dcb (diff) | |
| download | pleroma-2bf2c68dee1385cba906fe95bd2af3afd2a341b9.tar.gz pleroma-2bf2c68dee1385cba906fe95bd2af3afd2a341b9.zip | |
Merge branch 'develop' into fix/deprecation-warning-welcome-message
Diffstat (limited to 'priv/repo/migrations')
| -rw-r--r-- | priv/repo/migrations/20200925065249_make_user_ids_ci.exs | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/priv/repo/migrations/20200925065249_make_user_ids_ci.exs b/priv/repo/migrations/20200925065249_make_user_ids_ci.exs new file mode 100644 index 000000000..b7305f137 --- /dev/null +++ b/priv/repo/migrations/20200925065249_make_user_ids_ci.exs @@ -0,0 +1,19 @@ +defmodule Pleroma.Repo.Migrations.MakeUserIdsCI do +  use Ecto.Migration + +  def up do +    alter table(:users) do +      modify(:uri, :citext) +    end + +    create(unique_index(:users, :uri)) +  end + +  def don do +    drop(unique_index(:users, :uri)) + +    alter table(:users) do +      modify(:uri, :text) +    end +  end +end | 
