Debian Codegraph @

contrib/ast-db-manage/config/versions/dc7c357dc178_add_taskpool_options_to_system.py

raw symbols SCIP
1 """add taskpool options to system
2
3 Revision ID: dc7c357dc178
4 Revises: abdc9ede147d
5 Create Date: 2025-09-24 09:45:17.609185
6
7 """
8
9 # revision identifiers, used by Alembic.
10 revision = 'dc7c357dc178'
11 down_revision = 'abdc9ede147d'
12
13 from alembic import op
14 import sqlalchemy as sa
15
16
17 def 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
24 def downgrade():
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')