Script 4837ad1d96ea_drop_copr_build_coun_py
|
|
1 """drop Copr.build_count
2
3 Revision ID: 4837ad1d96ea
4 Revises: 294405dfc7c0
5 Create Date: 2014-01-20 17:05:20.917522
6
7 """
8
9
10 revision = '4837ad1d96ea'
11 down_revision = '294405dfc7c0'
12
13 from alembic import op
14 import sqlalchemy as sa
15
16
18 """ Drop 'build_count' colum from copr table. """
19 op.drop_column('copr', 'build_count')
20
21
23 """ Add 'build_count' colum to copr table. """
24 op.add_column('copr', sa.Column('build_count', sa.Integer(default=0)))
25