Skip to content
Snippets Groups Projects
Commit 58546cd7 authored by Jan Mach's avatar Jan Mach
Browse files

Fix: removed invalid command from migration script.

Vacuum command may not be executed within transaction.
parent 42fe54c9
No related branches found
No related tags found
No related merge requests found
......@@ -29,13 +29,6 @@ def upgrade(): # pylint: disable=locally-disabled,missing-docstring
op.execute( # pylint: disable=locally-disabled,no-member
"ALTER TABLE events DROP COLUMN IF EXISTS event"
)
# Perform cleanup.
op.execute( # pylint: disable=locally-disabled,no-member
"VACUUM FREEZE"
)
op.execute( # pylint: disable=locally-disabled,no-member
"CLUSTER events USING events_detecttime_idx"
)
def downgrade(): # pylint: disable=locally-disabled,missing-docstring
......@@ -51,10 +44,3 @@ def downgrade(): # pylint: disable=locally-disabled,missing-docstring
op.execute( # pylint: disable=locally-disabled,no-member
"DROP TABLE IF EXISTS events_json"
)
# Perform cleanup.
op.execute( # pylint: disable=locally-disabled,no-member
"VACUUM FREEZE"
)
op.execute( # pylint: disable=locally-disabled,no-member
"CLUSTER events USING events_detecttime_idx"
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment