2018-08-14 23:37:45 +02:00
|
|
|
"""Convert pending cert status field to text
|
|
|
|
|
|
|
|
Revision ID: 5ae0ecefb01f
|
|
|
|
Revises: 1db4f82bc780
|
|
|
|
Create Date: 2018-08-14 08:16:43.329316
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
2019-05-16 16:57:02 +02:00
|
|
|
revision = "5ae0ecefb01f"
|
|
|
|
down_revision = "1db4f82bc780"
|
2018-08-14 23:37:45 +02:00
|
|
|
|
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
op.alter_column(
|
2019-05-16 16:57:02 +02:00
|
|
|
table_name="pending_certs", column_name="status", nullable=True, type_=sa.TEXT()
|
2018-08-14 23:37:45 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
op.alter_column(
|
2019-05-16 16:57:02 +02:00
|
|
|
table_name="pending_certs",
|
|
|
|
column_name="status",
|
2018-08-14 23:37:45 +02:00
|
|
|
nullable=True,
|
2019-05-16 16:57:02 +02:00
|
|
|
type_=sa.VARCHAR(128),
|
2018-08-14 23:37:45 +02:00
|
|
|
)
|