This website works better with JavaScript.
Почетна
Преглед
lain.church
Помоћ
Регистрација
Пријавите Се
squeegily
/
pleroma
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
42
Вики
Activity
Преглед изворни кода
Merge branch 'fix/revert-citext-uri' into 'develop'
Revert citext user URI migration
Closes
#2188
See merge request
pleroma/pleroma!3042
features/ap_c2s_proxyUrl
rinpatch
пре 3 година
родитељ
35157f5dc8
7bc561127d
комит
30b79b0eb3
3 измењених фајлова
са
16 додато
и
15 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-14
priv/repo/migrations/20200925065249_make_user_ids_ci.exs
+11
-0
priv/repo/migrations/20200928145912_revert_citext_change.exs
+1
-1
test/user_search_test.exs
+ 4
- 14
priv/repo/migrations/20200925065249_make_user_ids_ci.exs
Прегледај датотеку
@@ -1,19 +1,9 @@
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
def change do
# Migration retired, see
# https://git.pleroma.social/pleroma/pleroma/-/issues/2188
:noop
end
end
+ 11
- 0
priv/repo/migrations/20200928145912_revert_citext_change.exs
Прегледај датотеку
@@ -0,0 +1,11 @@
defmodule Pleroma.Repo.Migrations.RevertCitextChange do
use Ecto.Migration
def change do
alter table(:users) do
modify(:uri, :text)
end
create_if_not_exists(unique_index(:users, :uri))
end
end
+ 1
- 1
test/user_search_test.exs
Прегледај датотеку
@@ -41,7 +41,7 @@ defmodule Pleroma.UserSearchTest do
insert(:user, %{
nickname: "no_relation",
ap_id: "https://lain.com/users/lain",
uri: "https://lain.com/@
L
ain"
uri: "https://lain.com/@
l
ain"
})
_user = insert(:user, %{nickname: "com_user"})
Write
Preview
Loading…
Откажи
Сачувај