Skip to content

Commit

Permalink
add migration for userdata hasBeenRung
Browse files Browse the repository at this point in the history
  • Loading branch information
mralext20 committed Apr 23, 2024
1 parent cee2e12 commit 42778f1
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"""add marker for 'has been run and knows how to disable that feature'
Revision ID: ca032db10a65
Revises: e2d7febddf07
Create Date: 2024-04-22 19:32:00.000875
"""

from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'ca032db10a65'
down_revision: Union[str, None] = 'e2d7febddf07'
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(
'userconfigs', sa.Column('hasBeenRung', sa.Boolean(), nullable=False, server_default=sa.text('false'))
)
# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('userconfigs', 'hasBeenRung')
# ### end Alembic commands ###

0 comments on commit 42778f1

Please sign in to comment.