Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
b73c5c00
Verified
Commit
b73c5c00
authored
1 month ago
by
Chad Woolley
Committed by
GitLab
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
Improve scripts/database/migrate.rb
parent
433aaaca
No related branches found
No related tags found
3 merge requests
!181325
Fix ambiguous `created_at` in project.rb
,
!179611
Draft: Rebase CR approach for zoekt assignments
,
!177533
Improve scripts/database/migrate.rb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/database/migrate.rb
+4
-1
4 additions, 1 deletion
scripts/database/migrate.rb
with
4 additions
and
1 deletion
scripts/database/migrate.rb
+
4
−
1
View file @
b73c5c00
...
...
@@ -46,7 +46,7 @@ def parse_options
opts
.
on
(
'--debug'
,
'Enable debug mode'
)
do
|
v
|
options
[
:debug
]
=
v
end
opts
.
on
(
'-t'
,
'--task=
TASK
'
,
'Set task'
)
do
|
v
|
opts
.
on
(
'-t'
,
'--task=
[up|down]
'
,
'Set task
- "up" to migrate forward, "down" to rollback
'
)
do
|
v
|
options
[
:task
]
=
v
end
end
.
parse!
...
...
@@ -125,6 +125,9 @@ def execute
puts
"$
#{
cmd
}
"
raise
"Migration
#{
version
}
failed"
unless
system
(
cmd
)
end
else
puts
'Invalid task. Use --task=[up|down]'
exit
1
end
end
# rubocop:enable Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
...
...
This diff is collapsed.
Click to expand it.
DANGER_GITLAB_API_TOKEN
@project_278964_bot_b66b169fda2a3223a645094be35d5515
mentioned in merge request
!179169
·
1 day ago
mentioned in merge request
!179169
mentioned in merge request !179169
Toggle commit list
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