Skip to content

Commit

Permalink
Sort out revisions again
Browse files Browse the repository at this point in the history
  • Loading branch information
perllaghu committed Oct 11, 2024
1 parent cf2e601 commit 97a3db0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""Change subscription column width
Revision ID: 2540572282f2
Revises: bfe19408f64f
Create Date: 2021-08-20 15:24:21.878350
"""

from alembic import op

# revision identifiers, used by Alembic.
revision = "2540572282f2"
down_revision = "bfe19408f64f"
branch_labels = None
depends_on = None


def upgrade():
op.execute("ALTER TABLE subscription ALTER COLUMN role TYPE Text")


def downgrade():
op.execute("ALTER TABLE subscription ALTER COLUMN role TYPE VARCHAR(50)")
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# revision identifiers, used by Alembic.
revision = "bfe19408f64f"
down_revision = "f3345539f08d"
down_revision = "2540572282f2"
branch_labels = None
depends_on = None

Expand Down

0 comments on commit 97a3db0

Please sign in to comment.