diff --git a/alembic/versions/e8de4928657_modify_jobs_table.py b/alembic/versions/e8de4928657_modify_jobs_table.py index 8ac7b02..75fa65f 100644 --- a/alembic/versions/e8de4928657_modify_jobs_table.py +++ b/alembic/versions/e8de4928657_modify_jobs_table.py @@ -1,14 +1,14 @@ """modify jobs table Revision ID: e8de4928657 -Revises: 11e2594da07b +Revises: 266e6f3efd94 Create Date: 2021-06-28 13:45:32.717585 """ # revision identifiers, used by Alembic. revision = 'e8de4928657' -down_revision = '11e2594da07b' +down_revision = '266e6f3efd94' from alembic import op from paddles.models.types import JSONType @@ -18,8 +18,6 @@ def upgrade(): - op.add_column(u'jobs', sa.Column('first_in_suite', sa.Boolean(), nullable=True)) - op.add_column(u'jobs', sa.Column('openstack', JSONType(), nullable=True)) op.add_column(u'jobs', sa.Column('priority', sa.Integer(), nullable=True)) op.add_column(u'jobs', sa.Column('repo', sa.String(length=256), nullable=True)) op.add_column(u'jobs', sa.Column('seed', sa.Integer(), nullable=True)) @@ -54,6 +52,4 @@ def downgrade(): op.drop_column(u'jobs', 'sleep_before_teardown') op.drop_column(u'jobs', 'repo') op.drop_column(u'jobs', 'priority') - op.drop_column(u'jobs', 'openstack') - op.drop_column(u'jobs', 'first_in_suite') diff --git a/paddles/models/jobs.py b/paddles/models/jobs.py index 054792a..91ec8f4 100644 --- a/paddles/models/jobs.py +++ b/paddles/models/jobs.py @@ -42,12 +42,10 @@ class Job(Base): flavor = Column(String(128)) job_id = Column(String(32), index=True) kernel = deferred(Column(JSONType())) - first_in_suite = Column(Boolean()) last_in_suite = Column(Boolean()) machine_type = Column(String(32)) name = Column(String(512)) nuke_on_error = Column(Boolean()) - openstack = Column(JSONType()) os_type = Column(String(32)) os_version = Column(String(16)) overrides = deferred(Column(JSONType())) @@ -122,7 +120,6 @@ class Job(Base): "pcp_grafana_url", "priority", "user", - "first_in_suite", "queue", )