Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mentat-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
mentat-test
Commits
58546cd7
Commit
58546cd7
authored
5 years ago
by
Jan Mach
Browse files
Options
Downloads
Patches
Plain Diff
Fix: removed invalid command from migration script.
Vacuum command may not be executed within transaction.
parent
42fe54c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
migrations-events/versions/0f31c168a714_split_event_column_from_events_to_.py
+0
-14
0 additions, 14 deletions
...rsions/0f31c168a714_split_event_column_from_events_to_.py
with
0 additions
and
14 deletions
migrations-events/versions/0f31c168a714_split_event_column_from_events_to_.py
+
0
−
14
View file @
58546cd7
...
...
@@ -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
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment