排程管理新增企微通知功能(消息以及文件推送)
This commit is contained in:
1 parent
88051db91e
commit
8da487aac6
13 files changed
+267
-112
No files matched your search
@@ -0,0 +1,32 @@
|
||||
"""replace mail notify fields with wecom notify fields
|
||||
|
||||
Revision ID: c1d2e3f4a5b6
|
||||
Revises: a9b0c1d2e3f4
|
||||
Create Date: 2026-05-20 00:00:00.000000
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
revision = 'c1d2e3f4a5b6'
|
||||
down_revision = 'a9b0c1d2e3f4'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('schedule_runs', sa.Column('wecom_notified', sa.Boolean(), nullable=True, server_default=sa.text('false')))
|
||||
op.add_column('schedule_runs', sa.Column('wecom_notified_at', sa.DateTime(), nullable=True))
|
||||
op.add_column('schedule_runs', sa.Column('wecom_notify_error', sa.Text(), nullable=True))
|
||||
op.drop_column('schedule_runs', 'mail_sent')
|
||||
op.drop_column('schedule_runs', 'mail_sent_at')
|
||||
op.drop_column('schedule_runs', 'mail_error')
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.add_column('schedule_runs', sa.Column('mail_error', sa.Text(), nullable=True))
|
||||
op.add_column('schedule_runs', sa.Column('mail_sent_at', sa.DateTime(), nullable=True))
|
||||
op.add_column('schedule_runs', sa.Column('mail_sent', sa.Boolean(), nullable=True, server_default=sa.text('false')))
|
||||
op.drop_column('schedule_runs', 'wecom_notify_error')
|
||||
op.drop_column('schedule_runs', 'wecom_notified_at')
|
||||
op.drop_column('schedule_runs', 'wecom_notified')
|
||||
Reference in new issue
Block a user