Script 4f6b48ec62ab_add_contact_and_homepage_columns_py
[hide private]
[frames] | no frames]

Source Code for Script script-4f6b48ec62ab_add_contact_and_homepage_columns_py

 1  """add contact and homepage columns 
 2   
 3  Revision ID: 4f6b48ec62ab 
 4  Revises: 57be43049e9b 
 5  Create Date: 2015-07-13 14:54:26.713819 
 6   
 7  """ 
 8   
 9  # revision identifiers, used by Alembic. 
10  revision = '4f6b48ec62ab' 
11  down_revision = '57be43049e9b' 
12   
13  from alembic import op 
14  import sqlalchemy as sa 
15   
16   
17 -def upgrade():
18 op.add_column(u'copr', sa.Column('contact', sa.Text, nullable=True)) 19 op.add_column(u'copr', sa.Column('homepage', sa.Text, nullable=True))
20 21
22 -def downgrade():
23 op.drop_column(u'copr', 'contact') 24 op.drop_column(u'copr', 'homepage')
25