Script 4567fd34cfb6_added_module_md_zlib_and_module_md_name__py
[hide private]
[frames] | no frames]

Source Code for Script script-4567fd34cfb6_added_module_md_zlib_and_module_md_name__py

 1  """added module_md_zlib and module_md_name to coprchroot 
 2   
 3  Revision ID: 4567fd34cfb6 
 4  Revises: 1ff696f006f1 
 5  Create Date: 2016-07-18 13:58:51.629188 
 6   
 7  """ 
 8   
 9  # revision identifiers, used by Alembic. 
10  revision = '4567fd34cfb6' 
11  down_revision = '1ff696f006f1' 
12   
13  from alembic import op 
14  import sqlalchemy as sa 
15   
16   
17 -def upgrade():
18 ### commands auto generated by Alembic - please adjust! ### 19 op.add_column('copr_chroot', sa.Column('module_md_name', sa.String(length=127), nullable=True)) 20 op.add_column('copr_chroot', sa.Column('module_md_zlib', sa.LargeBinary(), nullable=True))
21 ### end Alembic commands ### 22 23
24 -def downgrade():
25 ### commands auto generated by Alembic - please adjust! ### 26 op.drop_column('copr_chroot', 'module_md_zlib') 27 op.drop_column('copr_chroot', 'module_md_name')
28 ### end Alembic commands ### 29