Merge "Remove db SQL Schema Downgrades"

This commit is contained in:
Jenkins 2016-08-22 12:40:55 +00:00 committed by Gerrit Code Review
commit f76a674513
5 changed files with 0 additions and 22 deletions

View File

@ -16,7 +16,3 @@ ${imports if imports else ""}
def upgrade():
${upgrades if upgrades else "pass"}
def downgrade():
${downgrades if downgrades else "pass"}

View File

@ -20,7 +20,3 @@ def upgrade():
sa.Column('service', sa.String(length=255), nullable=False),
sa.Column('collector', sa.String(length=255), nullable=False),
sa.PrimaryKeyConstraint('service'))
def downgrade():
op.drop_table('service_to_collector_mappings')

View File

@ -18,7 +18,3 @@ def upgrade():
op.add_column(
'modules_state',
sa.Column('priority', sa.Integer(), nullable=True))
def downgrade():
op.drop_column('modules_state', 'priority')

View File

@ -26,8 +26,3 @@ def upgrade():
sa.Column('name', sa.String(length=255), nullable=False),
sa.Column('state', sa.Boolean(), nullable=False),
sa.PrimaryKeyConstraint('name'))
def downgrade():
op.drop_table('modules_state')
op.drop_table('states')

View File

@ -27,11 +27,6 @@ def upgrade(revision):
return migration.upgrade(config, revision)
def downgrade(revision):
config = migration.load_alembic_config(ALEMBIC_REPO)
return migration.downgrade(config, revision)
def version():
config = migration.load_alembic_config(ALEMBIC_REPO)
return migration.version(config)