feat: add selective vCard batch workflows
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
"""Allow profile-free persisted vCard batch runs.
|
||||
|
||||
Revision ID: d6e8f9a0b1c2
|
||||
Revises: c5d7e8f9a0b1
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision = "d6e8f9a0b1c2"
|
||||
down_revision = "c5d7e8f9a0b1"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
with op.batch_alter_table("addresses_import_runs") as batch:
|
||||
batch.alter_column(
|
||||
"profile_id",
|
||||
existing_type=sa.String(length=36),
|
||||
nullable=True,
|
||||
)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
with op.batch_alter_table("addresses_import_runs") as batch:
|
||||
batch.alter_column(
|
||||
"profile_id",
|
||||
existing_type=sa.String(length=36),
|
||||
nullable=False,
|
||||
)
|
||||
Reference in New Issue
Block a user