Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6b9cd1c7
Commit
6b9cd1c7
authored
Aug 05, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
b06c5d91
c368bae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
lib/gitlab/background_migration/migrate_legacy_artifacts.rb
lib/gitlab/background_migration/migrate_legacy_artifacts.rb
+12
-6
No files found.
lib/gitlab/background_migration/migrate_legacy_artifacts.rb
View file @
6b9cd1c7
...
@@ -39,10 +39,10 @@ module Gitlab
...
@@ -39,10 +39,10 @@ module Gitlab
SELECT
SELECT
project_id,
project_id,
id,
id,
artifacts_expire_at,
artifacts_expire_at
#{
add_missing_db_timezone
}
,
#{
LEGACY_PATH_FILE_LOCATION
}
,
#{
LEGACY_PATH_FILE_LOCATION
}
,
created_at,
created_at
#{
add_missing_db_timezone
}
,
created_at,
created_at
#{
add_missing_db_timezone
}
,
artifacts_file,
artifacts_file,
artifacts_size,
artifacts_size,
COALESCE(artifacts_file_store,
#{
FILE_LOCAL_STORE
}
),
COALESCE(artifacts_file_store,
#{
FILE_LOCAL_STORE
}
),
...
@@ -81,10 +81,10 @@ module Gitlab
...
@@ -81,10 +81,10 @@ module Gitlab
SELECT
SELECT
project_id,
project_id,
id,
id,
artifacts_expire_at,
artifacts_expire_at
#{
add_missing_db_timezone
}
,
#{
LEGACY_PATH_FILE_LOCATION
}
,
#{
LEGACY_PATH_FILE_LOCATION
}
,
created_at,
created_at
#{
add_missing_db_timezone
}
,
created_at,
created_at
#{
add_missing_db_timezone
}
,
artifacts_metadata,
artifacts_metadata,
NULL,
NULL,
COALESCE(artifacts_metadata_store,
#{
FILE_LOCAL_STORE
}
),
COALESCE(artifacts_metadata_store,
#{
FILE_LOCAL_STORE
}
),
...
@@ -121,6 +121,12 @@ module Gitlab
...
@@ -121,6 +121,12 @@ module Gitlab
AND artifacts_file <> ''
AND artifacts_file <> ''
SQL
SQL
end
end
def
add_missing_db_timezone
return
''
unless
Gitlab
::
Database
.
postgresql?
'at time zone \'UTC\''
end
end
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment