Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85825587
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
889 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs b/priv/repo/migrations/20220116183110_add_birthday_to_users.exs
similarity index 63%
rename from priv/repo/migrations/29220116183110_add_birth_date_to_users.exs
rename to priv/repo/migrations/20220116183110_add_birthday_to_users.exs
index 57fedaee2..0b22ecc69 100644
--- a/priv/repo/migrations/29220116183110_add_birth_date_to_users.exs
+++ b/priv/repo/migrations/20220116183110_add_birthday_to_users.exs
@@ -1,10 +1,12 @@
-defmodule Pleroma.Repo.Migrations.AddBirthDateToUsers do
+defmodule Pleroma.Repo.Migrations.AddBirthdayToUsers do
use Ecto.Migration
def change do
alter table(:users) do
add_if_not_exists(:birthday, :date)
add_if_not_exists(:show_birthday, :boolean, default: false, null: false)
end
+
+ create_if_not_exists(index(:users, [:show_birthday]))
end
end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Oct 30, 1:43 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1799141
Default Alt Text
(889 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline