feat: restore source parity and harden agent runtime
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
"""add form_meta globally_visible column
|
||||
|
||||
Revision ID: f6g7h8i9j0k1
|
||||
Revises: e5f6g7h8i9j0
|
||||
Create Date: 2026-06-04 12:00:00.000000
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
revision: str = 'f6g7h8i9j0k1'
|
||||
down_revision: Union[str, None] = 'e5f6g7h8i9j0'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.add_column(
|
||||
'form_meta',
|
||||
sa.Column(
|
||||
'globally_visible',
|
||||
sa.Boolean(),
|
||||
nullable=True,
|
||||
server_default=sa.text('false'),
|
||||
comment='是否全局可见(供其他应用引用)',
|
||||
),
|
||||
)
|
||||
op.execute("UPDATE form_meta SET globally_visible = false WHERE globally_visible IS NULL")
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_column('form_meta', 'globally_visible')
|
||||
Reference in New Issue
Block a user