"Fossies" - the Fresh Open Source Software Archive
Member "buildbot-2.3.1/buildbot/db/migrate/versions/051_add_worker_status.py" (23 May 2019, 1218 Bytes) of package /linux/misc/buildbot-2.3.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard
) with prefixed line numbers.
Alternatively you can here view
the uninterpreted source code file.
For more information about "051_add_worker_status.py" see the Fossies "Dox" file reference
documentation and the last Fossies "Diffs"
side-by-side code changes report: 1.8.0_vs_2.0.0
1 # This file is part of Buildbot. Buildbot is free software: you can
2 # redistribute it and/or modify it under the terms of the GNU General Public
3 # License as published by the Free Software Foundation, version 2.
5 # This program is distributed in the hope that it will be useful, but WITHOUT
6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
8 # details.
10 # You should have received a copy of the GNU General Public License along with
11 # this program; if not, write to the Free Software Foundation, Inc., 51
12 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14 # Copyright Buildbot Team Members
17 import sqlalchemy as sa
19 from buildbot.util import sautils
22 def upgrade(migrate_engine):
23 metadata = sa.MetaData()
24 metadata.bind = migrate_engine
25 workers_table = sautils.Table('workers', metadata, autoload=True)
26 paused = sa.Column('paused', sa.SmallInteger,
27 nullable=False, server_default="0")
28 graceful = sa.Column('graceful', sa.SmallInteger,
29 nullable=False, server_default="0")