Merge "Remove db SQL Schema Downgrades"
This commit is contained in:
commit
f76a674513
@ -16,7 +16,3 @@ ${imports if imports else ""}
|
||||
|
||||
def upgrade():
|
||||
${upgrades if upgrades else "pass"}
|
||||
|
||||
|
||||
def downgrade():
|
||||
${downgrades if downgrades else "pass"}
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user