summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20210222184616_change_hashtags_name_to_text.exs
diff options
context:
space:
mode:
Diffstat (limited to 'priv/repo/migrations/20210222184616_change_hashtags_name_to_text.exs')
-rw-r--r--priv/repo/migrations/20210222184616_change_hashtags_name_to_text.exs15
1 files changed, 15 insertions, 0 deletions
diff --git a/priv/repo/migrations/20210222184616_change_hashtags_name_to_text.exs b/priv/repo/migrations/20210222184616_change_hashtags_name_to_text.exs
new file mode 100644
index 000000000..8940b6ca3
--- /dev/null
+++ b/priv/repo/migrations/20210222184616_change_hashtags_name_to_text.exs
@@ -0,0 +1,15 @@
+defmodule Pleroma.Repo.Migrations.ChangeHashtagsNameToText do
+ use Ecto.Migration
+
+ def up do
+ alter table(:hashtags) do
+ modify(:name, :text)
+ end
+ end
+
+ def down do
+ alter table(:hashtags) do
+ modify(:name, :citext)
+ end
+ end
+end