Script 1f4e04bb3618_add_build_submitted_by_field_py
[hide private]
[frames] | no frames]

Source Code for Script script-1f4e04bb3618_add_build_submitted_by_field_py

 1  """ 
 2  add build.submitted_by field 
 3   
 4  Revision ID: 1f4e04bb3618 
 5  Revises: 2d8b4722918b 
 6  Create Date: 2019-06-10 06:08:14.501770 
 7  """ 
 8   
 9  import sqlalchemy as sa 
10  from alembic import op 
11   
12   
13  revision = '1f4e04bb3618' 
14  down_revision = '2d8b4722918b' 
15   
16 -def upgrade():
17 op.add_column('build', sa.Column('submitted_by', sa.Text(), nullable=True))
18
19 -def downgrade():
20 op.drop_column('build', 'submitted_by')
21