Commit graph

18 commits

Author SHA1 Message Date
blackst0ne
bc00806a4e Add database helpers 'add_timestamps_with_timezone' and 'timestamps_with_timezone' 2017-06-13 22:44:13 +11:00
Bob Van Landuyt
ffc486a585 Add some documentation for the new migration helpers 2017-05-02 14:10:55 +02:00
Yorick Peterse
223d8a3d26
Prepare for zero downtime migrations
Starting with GitLab 9.1.0 we will no longer allow downtime migrations
unless absolutely necessary. This commit updates the various developer
guides and adds code that is necessary to make zero downtime migrations
less painful.
2017-04-12 18:15:19 +02:00
blackst0ne
9997c58fc0 Add remove_concurrent_index to database helper 2017-04-06 09:53:57 +11:00
Robert Speicher
9a2ad60ffa Add more highlighting to Migration Style Guide doc
[ci skip]
2016-11-09 10:59:15 +00:00
Nick Thomas
267a96f3d4 Link to the "What requires downtime?" page from the Migration Style Guide
[ci skip]
2016-10-02 20:36:45 +01:00
Drew Blessing
e000f02bd3 Add support for column limits in add_column_with_default 2016-09-15 21:59:58 -05:00
Yorick Peterse
a8bfe20d0d
Added checks for migration downtime
These new checks can be used to check if migrations require downtime or
not (as tagged by their authors). In CI this compares the current branch
with master so migrations added by merge requests are automatically
verified.

To check the migrations added since a Git reference simply run:

    bundle exec rake gitlab:db:downtime_check[GIT_REF]
2016-07-20 12:41:56 +02:00
Drew Blessing
8d96bae6db Remove Rubocop skip comment from migration style guide [ci skip] 2016-06-23 09:01:04 -05:00
Drew Blessing
8033afd817 Update migration_style_guide.md with new details 2016-06-15 21:38:12 +00:00
Chris Spicer
348d16f524 updtae -> update 2016-05-29 22:31:39 -07:00
Yorick Peterse
e8efaca23c
Updated migration styleguide for new helpers 2016-05-12 13:03:55 +02:00
Rémy Coutable
a4ffdf922d Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce 2016-02-17 17:33:09 +01:00
Prayag Verma
b877afc371 Fix a typo [ci skip]
Remove extra `make`
2016-02-12 19:02:35 +05:30
Kamil Trzciński
35b93f9d22 Add notice about offline migrations 2015-11-02 15:14:34 +00:00
Valery Sizov
34a9aa2e8a update migration style guide 2015-05-12 14:34:43 +03:00
Sytse Sijbrandij
881e11df1b Small improvements to style guide. 2015-05-11 14:48:39 +00:00
Job van der Voort
6a6047f80c create migration style guide. Fixes #2305 2015-05-11 15:09:36 +02:00