-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow to hide "music_room", "sports" and "moodle"
- Loading branch information
1 parent
2a5f0b6
commit cdb5a4b
Showing
6 changed files
with
84 additions
and
9 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
alembic/versions/_2024_02_13_05_37_music_room_sports_moodle_hidden.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"""music room sports moodle hidden | ||
Revision ID: 6f44af938cdf | ||
Revises: cba1388a6e8f | ||
Create Date: 2024-02-13 05:37:56.186458 | ||
""" | ||
# ruff: noqa: E501 | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "6f44af938cdf" | ||
down_revision: Union[str, None] = "cba1388a6e8f" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column( | ||
"users", sa.Column("music_room_hidden", sa.Boolean(), server_default=sa.text("false"), nullable=False) | ||
) | ||
op.add_column("users", sa.Column("sports_hidden", sa.Boolean(), server_default=sa.text("false"), nullable=False)) | ||
op.add_column("users", sa.Column("moodle_hidden", sa.Boolean(), server_default=sa.text("false"), nullable=False)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("users", "moodle_hidden") | ||
op.drop_column("users", "sports_hidden") | ||
op.drop_column("users", "music_room_hidden") | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cdb5a4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report