8000 Fix db migration by eguerrant · Pull Request #305 · discord/access · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix db migration #305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
"""do not renew

Revision ID: 0a7f1ca77b12
Revision ID: cbc5bb2f05b7
Revises: 6d2a03b326f9
Create Date: 2025-06-08 18:18:38.868290
Create Date: 2025-06-27 13:55:16.355027

"""

from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import expression


# revision identifiers, 7452 used by Alembic.
revision = "0a7f1ca77b12"
revision = "cbc5bb2f05b7"
down_revision = "6d2a03b326f9"
branch_labels = None
depends_on = None
Expand All @@ -20,10 +21,10 @@
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table("okta_user_group_member", schema=None) as batch_op:
batch_op.add_column(sa.Column("should_expire", sa.Boolean(), server_default=sa.text("0"), nullable=False))
batch_op.add_column(sa.Column("should_expire", sa.Boolean(), server_default=expression.false(), nullable=False))

with op.batch_alter_table("role_group_map", schema=None) as batch_op:
batch_op.add_column(sa.Column("should_expire", sa.Boolean(), server_default=sa.text("0"), nullable=False))
batch_op.add_column(sa.Column("should_expire", sa.Boolean(), server_default=expression.false(), nullable=False))

# ### end Alembic commands ###

Expand Down
0