Skip to content

Conversation

@spaenleh
Copy link
Member

@spaenleh spaenleh commented Dec 18, 2025

In this PR I add a name and language column to the admin table. This allows admins to set a Name and a preferred language.
This has currently no effect.

@spaenleh spaenleh requested a review from pyphilia December 18, 2025 12:15
@spaenleh spaenleh self-assigned this Dec 18, 2025
@spaenleh spaenleh added the feature New feature or request label Dec 18, 2025
Copy link
Contributor

@pyphilia pyphilia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🥨

Comment on lines +8 to +12
%{value: "en", key: "English"},
%{value: "fr", key: "French"},
%{value: "es", key: "Spanish"},
%{value: "de", key: "German"},
%{value: "it", key: "Italian"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Order by sth? value or key

def change do
alter table(:admins) do
add :name, :string
add :language, :string, default: "en"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it null: false?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants