Asterisk - The Open Source Telephony Project GIT-master-4f2b068
Loading...
Searching...
No Matches
dc7c357dc178_add_taskpool_options_to_system.py
Go to the documentation of this file.
1"""add taskpool options to system
2
3Revision ID: dc7c357dc178
4Revises: abdc9ede147d
5Create Date: 2025-09-24 09:45:17.609185
6
7"""
8
9# revision identifiers, used by Alembic.
10revision = 'dc7c357dc178'
11down_revision = 'abdc9ede147d'
12
13from alembic import op
14import sqlalchemy as sa
15
16
17def upgrade():
18 op.add_column('ps_systems', sa.Column('taskpool_minimum_size', sa.Integer))
19 op.add_column('ps_systems', sa.Column('taskpool_initial_size', sa.Integer))
20 op.add_column('ps_systems', sa.Column('taskpool_auto_increment', sa.Integer))
21 op.add_column('ps_systems', sa.Column('taskpool_idle_timeout', sa.Integer))
22 op.add_column('ps_systems', sa.Column('taskpool_max_size', sa.Integer))
23
25 op.drop_column('ps_systems', 'taskpool_minimum_size')
26 op.drop_column('ps_systems', 'taskpool_initial_size')
27 op.drop_column('ps_systems', 'taskpool_auto_increment')
28 op.drop_column('ps_systems', 'taskpool_idle_timeout')
29 op.drop_column('ps_systems', 'taskpool_max_size')