Module b0fd99505e37_fixup_unassigned_copr_chroots
|
|
1 """
2 fixup unassigned copr chroots
3
4 Revision ID: b0fd99505e37
5 Revises: 4d06318043d3
6 Create Date: 2020-04-29 08:26:46.827633
7 """
8
9 from alembic import op
10
11 revision = 'b0fd99505e37'
12 down_revision = '4d06318043d3'
13
15
16
17 op.execute("""
18 update build_chroot
19 set status = 2
20 from build where
21 build_chroot.build_id = build.id and
22 build_chroot.status = 4 and
23 build.canceled != true and
24 build_chroot.copr_chroot_id is null
25 """)
26
27
29 """ nothing needed """
30