Script 498884ac47db_add_timezone_field_py
[hide private]
[frames] | no frames]

Source Code for Script script-498884ac47db_add_timezone_field_py

 1  """add timezone field 
 2   
 3  Revision ID: 498884ac47db 
 4  Revises: 4837ad1d96ea 
 5  Create Date: 2014-01-23 12:15:04.450292 
 6   
 7  """ 
 8   
 9  # revision identifiers, used by Alembic. 
10  revision = '498884ac47db' 
11  down_revision = '4837ad1d96ea' 
12   
13  from alembic import op 
14  import sqlalchemy as sa 
15   
16   
17 -def upgrade():
18 """ Add 'data' colum to action table. """ 19 op.add_column('user', sa.Column('timezone', sa.String(length=50), nullable=True))
20 21
22 -def downgrade():
23 """ Drop 'data' colum from action table. """ 24 op.drop_column('user', 'timezone')
25