Skip to content
GitLab
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
omnibus-gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
omnibus-gitlab
Merge requests
!4054
Print a deprecation notice for postgres upgrades if <11
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Print a deprecation notice for postgres upgrades if <11
postgres-deprecation-notice
into
master
Overview
33
Commits
27
Pipelines
25
Changes
1
Merged
Dustin Collins
requested to merge
postgres-deprecation-notice
into
master
4 years ago
Overview
26
Commits
27
Pipelines
25
Changes
1
Expand
Closes
#5095 (closed)
.
Edited
4 years ago
by
Dustin Collins
0
0
Merge request reports
Viewing commit
a27aa922
Prev
Next
Show latest version
1 file
+
2
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
検証済み
a27aa922
favor modifier usage, rubocop
· a27aa922
Dustin Collins
authored
4 years ago
files/gitlab-ctl-commands/pg-upgrade.rb
+
2
−
6
Options
@@ -69,7+69,7 @@
add_command_under_category
'pg-upgrade'
,
'database'
,
'Upgrade the PostgreSQL DB to the latest supported version'
,
2
do
|
_cmd_name
|
options
=
GitlabCtl
::
PgUpgrade
.
parse_options
(
ARGV
)
@db_service_name
=
'postgresql'
@db_worker
=
GitlabCtl
::
PgUpgrade
.
new
(
base_path
,
@@ -97,7+97,7 @@
@attributes
[
'postgresql'
][
'version'
].
nil?
end
log
"postgresql['version'] is set in /etc/gitlab/gitlab.rb. Not checking for a PostgreSQL upgrade"
if
@attributes
[
'postgresql'
][
'version'
].
major
.
to_f
<
'11'
.
to_f
deprecation_message
end
deprecation_message
if
@attributes
[
'postgresql'
][
'version'
].
major
.
to_f
<
'11'
.
to_f
Kernel
.
exit
0
end
@@ -118,9 +116,7 @@ add_command_under_category 'pg-upgrade', 'database',
Kernel
.
exit
0
end
unless
@db_worker
.
target_version
>=
'11'
deprecation_message
end
deprecation_message
if
@db_worker
.
target_version
<
'11'
unless
GitlabCtl
::
Util
.
progress_message
(
'Checking if PostgreSQL bin files are symlinked to the expected location'
Loading