Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a buildrequests.waited_for column
fix the fake buildrequest.waited_for
- Loading branch information
Buck Golemon
committed
Aug 7, 2013
1 parent
027cada
commit 2a7ff92
Showing
6 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
master/buildbot/db/migrate/versions/033_buildrequests_waited_for.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import sqlalchemy as sa | ||
|
||
def upgrade(migrate_engine): | ||
metadata = sa.MetaData() | ||
metadata.bind = migrate_engine | ||
|
||
buildrequests_table = sa.Table('buildrequests', metadata, autoload=True) | ||
|
||
# boolean indicating whether there is a step blocking, waiting for this request to complete | ||
waited_for = sa.Column('waited_for', sa.SmallInteger, | ||
server_default=sa.DefaultClause("0")) | ||
waited_for.create(buildrequests_table) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters