BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
46da26ad
Commit
46da26ad
authored
Dec 19, 2017
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes AddTimezoneToIssuesClosedAt migration and respective cleanup post migration for C
parent
6b71b225
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
38 deletions
+0
-38
20171106171453_add_timezone_to_issues_closed_at.rb
...igrate/20171106171453_add_timezone_to_issues_closed_at.rb
+0
-19
20171106180641_cleanup_add_timezone_to_issues_closed_at.rb
...0171106180641_cleanup_add_timezone_to_issues_closed_at.rb
+0
-19
No files found.
db/migrate/20171106171453_add_timezone_to_issues_closed_at.rb
deleted
100644 → 0
View file @
6b71b225
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddTimezoneToIssuesClosedAt
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
disable_ddl_transaction!
def
up
change_column_type_concurrently
(
:issues
,
:closed_at
,
:datetime_with_timezone
)
end
def
down
cleanup_concurrent_column_type_change
(
:issues
,
:closed_at
)
end
end
db/post_migrate/20171106180641_cleanup_add_timezone_to_issues_closed_at.rb
deleted
100644 → 0
View file @
6b71b225
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
CleanupAddTimezoneToIssuesClosedAt
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
cleanup_concurrent_column_type_change
(
:issues
,
:closed_at
)
end
# rubocop:disable Migration/Datetime
def
down
change_column_type_concurrently
(
:issues
,
:closed_at
,
:datetime
)
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