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
2e787ef4
Commit
2e787ef4
authored
Dec 17, 2020
by
Vladimir Shushlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change pages deployments size to 8 bytes
It was causing pages deployments 2.4 GB to fail
parent
914ecdff
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
1 deletion
+43
-1
changelogs/unreleased/294221-gitlab-pages-deployments-over-the-max-int-size-in-bytes-fail-to-up.yml
...deployments-over-the-max-int-size-in-bytes-fail-to-up.yml
+5
-0
db/migrate/20201217111448_change_pages_deployment_size_to_bigint.rb
.../20201217111448_change_pages_deployment_size_to_bigint.rb
+17
-0
db/post_migrate/20201217112249_change_pages_deployment_size_to_bigint_cleanup.rb
...7112249_change_pages_deployment_size_to_bigint_cleanup.rb
+17
-0
db/schema_migrations/20201217111448
db/schema_migrations/20201217111448
+1
-0
db/schema_migrations/20201217112249
db/schema_migrations/20201217112249
+1
-0
db/structure.sql
db/structure.sql
+2
-1
No files found.
changelogs/unreleased/294221-gitlab-pages-deployments-over-the-max-int-size-in-bytes-fail-to-up.yml
0 → 100644
View file @
2e787ef4
---
title
:
Change pages deployments size to bigint
merge_request
:
50262
author
:
type
:
fixed
db/migrate/20201217111448_change_pages_deployment_size_to_bigint.rb
0 → 100644
View file @
2e787ef4
# frozen_string_literal: true
class
ChangePagesDeploymentSizeToBigint
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
change_column_type_concurrently
:pages_deployments
,
:size
,
:bigint
end
def
down
undo_change_column_type_concurrently
:pages_deployments
,
:size
end
end
db/post_migrate/20201217112249_change_pages_deployment_size_to_bigint_cleanup.rb
0 → 100644
View file @
2e787ef4
# frozen_string_literal: true
class
ChangePagesDeploymentSizeToBigintCleanup
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
cleanup_concurrent_column_type_change
:pages_deployments
,
:size
end
def
down
undo_cleanup_concurrent_column_type_change
:pages_deployments
,
:size
,
:integer
,
limit:
4
end
end
db/schema_migrations/20201217111448
0 → 100644
View file @
2e787ef4
32330327aa8db01b5bc2c533af5387e77ad3dc0c34eacaac16a793df75634ce6
\ No newline at end of file
db/schema_migrations/20201217112249
0 → 100644
View file @
2e787ef4
938aa97919e5a15143a72f33bebb27e501d5ef7cc53cf4e7debe9dee398b7255
\ No newline at end of file
db/structure.sql
View file @
2e787ef4
...
...
@@ -14869,10 +14869,11 @@ CREATE TABLE pages_deployments (
project_id
bigint
NOT
NULL
,
ci_build_id
bigint
,
file_store
smallint
NOT
NULL
,
size
integer
NOT
NULL
,
file
text
NOT
NULL
,
file_count
integer
NOT
NULL
,
file_sha256
bytea
NOT
NULL
,
size
bigint
,
CONSTRAINT
check_5f9132a958
CHECK
((
size
IS
NOT
NULL
)),
CONSTRAINT
check_f0fe8032dd
CHECK
((
char_length
(
file
)
<=
255
))
);
...
...
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