Commit 2363391d6e8047bfc64bd49b911a35bff557efff

Thomas de Grivel 2021-11-30T08:44:11

remove repository slug unique index

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/priv/repo/migrations/20211130074130_remove_repository_slug_unique_index.exs b/priv/repo/migrations/20211130074130_remove_repository_slug_unique_index.exs
new file mode 100644
index 0000000..5e49103
--- /dev/null
+++ b/priv/repo/migrations/20211130074130_remove_repository_slug_unique_index.exs
@@ -0,0 +1,10 @@
+defmodule Kmxgit.Repo.Migrations.RemoveRepositorySlugUniqueIndex do
+  use Ecto.Migration
+
+  def up do
+    drop_if_exists index(:repositories, ["(lower(slug))"], unique: true)
+  end
+
+  def down do
+  end
+end