Skip to content

Commit

Permalink
Remove migration since flask_session creates the table.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi committed Jun 30, 2024
1 parent d70d482 commit 1031c91
Show file tree
Hide file tree
Showing 2 changed files with 1,772 additions and 1,783 deletions.
15 changes: 2 additions & 13 deletions airflow/migrations/versions/0095_2_2_4_add_session_table_to_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@

from __future__ import annotations

import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "c381b21cb7e4"
down_revision = "be2bfac3da23"
Expand All @@ -41,17 +38,9 @@

def upgrade():
"""Apply Create a ``session`` table to store web session data."""
op.create_table(
TABLE_NAME,
sa.Column("id", sa.Integer()),
sa.Column("session_id", sa.String(255)),
sa.Column("data", sa.LargeBinary()),
sa.Column("expiry", sa.DateTime()),
sa.PrimaryKeyConstraint("id"),
sa.UniqueConstraint("session_id"),
)
pass


def downgrade():
"""Unapply Create a ``session`` table to store web session data."""
op.drop_table(TABLE_NAME)
pass
Loading

0 comments on commit 1031c91

Please sign in to comment.