Script 419a626c25e6_rename_rawhide_to_f26_py
[hide private]
[frames] | no frames]

Source Code for Script script-419a626c25e6_rename_rawhide_to_f26_py

 1  """Rename rawhide to f26 
 2   
 3  Revision ID: 419a626c25e6 
 4  Revises: 149da7c4ac2f 
 5  Create Date: 2016-10-05 13:16:21.428071 
 6   
 7  """ 
 8   
 9  # revision identifiers, used by Alembic. 
10  revision = '419a626c25e6' 
11  down_revision = '149da7c4ac2f' 
12   
13  from alembic import op 
14  import sqlalchemy as sa 
15   
16   
17 -def upgrade():
18 bind = op.get_bind() 19 connection = bind.connect() 20 21 connection.execute( 22 "UPDATE mock_chroot SET os_version='26' WHERE os_release = 'fedora' AND os_version = 'rawhide'" 23 ) 24 connection.close()
25 26
27 -def downgrade():
28 bind = op.get_bind() 29 connection = bind.connect() 30 31 connection.execute( 32 "UPDATE mock_chroot SET os_version='rawhide' WHERE os_release = 'fedora' AND os_version = '26'" 33 ) 34 connection.close()
35