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: 8de41eec1d1 
 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 = '8de41eec1d1' 
12   
13  from alembic import op 
14   
15   
16 -def upgrade():
17 bind = op.get_bind() 18 connection = bind.connect() 19 20 connection.execute( 21 "UPDATE mock_chroot SET os_version='26' WHERE os_release = 'fedora' AND os_version = 'rawhide'" 22 ) 23 connection.close()
24 25
26 -def downgrade():
27 bind = op.get_bind() 28 connection = bind.connect() 29 30 connection.execute( 31 "UPDATE mock_chroot SET os_version='rawhide' WHERE os_release = 'fedora' AND os_version = '26'" 32 ) 33 connection.close()
34