Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
61bae9a4
Commit
61bae9a4
authored
Jan 23, 2022
by
marcin mikołajczak
Browse files
Create index for `show_birthday`
Signed-off-by:
marcin mikołajczak
<
git@mkljczk.pl
>
parent
e3d394ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
priv/repo/migrations/2
9
220116183110_add_birth
_
da
te
_to_users.exs
→
priv/repo/migrations/2
0
220116183110_add_birthda
y
_to_users.exs
View file @
61bae9a4
defmodule
Pleroma
.
Repo
.
Migrations
.
AddBirth
Date
ToUsers
do
defmodule
Pleroma
.
Repo
.
Migrations
.
AddBirth
day
ToUsers
do
use
Ecto
.
Migration
def
change
do
...
...
@@ -6,5 +6,7 @@ def change 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment