Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-08-27 | Removes trailing whitespace to fix linting | Evan Read | |
2019-08-27 | Migrations guide: use atomic steps, when possible | Mayra Cabrera | |
Currently, the DB migrations guide says that "you must" use non-blocking operations (such as CREATE INDEX CONCURRENTLY), always. But this does not make sense in cases of empty tables and leads to splitting the work to multiple non-atomic (with disable_ddl_transaction!) DB migrations. To follow KISS principle, to have fewer DB migrations steps, to have them atomic when it's possible and simplify deployment and troubleshooting, the following exceptions were added to the doc: - index creation, - index dropping, - defining an FK, - adding a column with DEFAULT, | |||
2019-08-07 | Update Migration Style Guide | Valery Sizov | |
2019-07-09 | Update redirected links to final destination | Marcel Amirault | |
Updating redirected links in the development, install, policy raketasks and university dirs. Should now link to final URL to avoid redirect hops | |||
2019-05-23 | Add note for index requirement with FK constraint | Shinya Maeda | |
Update migration_style_guide.md | |||
2019-04-12 | Add information about moving migrations | Gosia Ksionek | |
Add to docs paragraph about a way of moving EE migrations to CE if needed | |||
2019-02-18 | Remove consecutive blank lines from markdown files | Evan Read | |
For the sake of consistency, removes any extraneous consecutive blank lines from the doc suite. | |||
2019-01-08 | Make unordered lists conform to styleguide | Evan Read | |
- Also makes other minor Markdown fixes that were near the main fixes. | |||
2019-01-04 | Add config_options|variables to BuildMetadata | Kamil Trzciński | |
These are data columns that store runtime configuration of build needed to execute it on runner and within pipeline. The definition of this data is that once used, and when no longer needed (due to retry capability) they can be freely removed. They use `jsonb` on PostgreSQL, and `text` on MySQL (due to lacking support for json datatype on old enough version). | |||
2018-12-12 | Fix ActiveRecord::Migration deprecations | Yorick Peterse | |
Extending from ActiveRecord::Migration is deprecated, but was still used in a bunch of places. | |||
2018-11-20 | Merge branch 'improve_migrations_docs' into 'master' | Yorick Peterse | |
Documentation: Correct inaccurate phrase related to disable_ddl_transaction mode See merge request gitlab-org/gitlab-ce!21175 | |||
2018-11-15 | Validate foreign keys being indexed | Kamil Trzciński | |
2018-08-14 | Correct inaccurate phrase related to disable_ddl_transaction mode | Nikolay | |
2018-08-09 | Docs: FK constraints require an index. | Andreas Brandl | |
Closes #49789. | |||
2018-03-22 | make a little more obvious what operations might need downtime or enhanced ↵ | Brett Walker | |
migration techniques | |||
2018-03-20 | Shortcut concurrent index creation/removal if no effect. | Andreas Brandl | |
Index creation does not have an effect if the index is present already. Index removal does not have an affect if the index is not present. This helps to avoid patterns like this in migrations: ``` if index_exists?(...) remove_concurrent_index(...) end ``` | |||
2018-01-19 | doc: Spelling fixes | Ville Skyttä | |
2017-11-17 | Add computed update docs for update_column_in_batches | Sean McGivern | |
2017-08-04 | Mention schema migrations and patch releases | Yorick Peterse | |
2017-08-04 | Removed commit guidelines for migrations | Yorick Peterse | |
At some point we decided this isn't really necessary, so let's get rid of it. | |||
2017-06-13 | Add database helpers 'add_timestamps_with_timezone' and ↵ | blackst0ne | |
'timestamps_with_timezone' | |||
2017-05-02 | Add some documentation for the new migration helpers | Bob Van Landuyt | |
2017-04-12 | Prepare for zero downtime migrations | Yorick Peterse | |
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-06 | Add remove_concurrent_index to database helper | blackst0ne | |
2016-11-09 | Add more highlighting to Migration Style Guide doc | Robert Speicher | |
[ci skip] | |||
2016-10-02 | Link to the "What requires downtime?" page from the Migration Style Guide | Nick Thomas | |
[ci skip] | |||
2016-09-16 | Add support for column limits in add_column_with_default | Drew Blessing | |
2016-07-20 | Added checks for migration downtime | Yorick Peterse | |
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-06-23 | Remove Rubocop skip comment from migration style guide [ci skip] | Drew Blessing | |
2016-06-16 | Update migration_style_guide.md with new details | Drew Blessing | |
2016-05-30 | updtae -> update | Chris Spicer | |
2016-05-12 | Updated migration styleguide for new helpers | Yorick Peterse | |
2016-02-17 | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce | Rémy Coutable | |
2016-02-12 | Fix a typo [ci skip] | Prayag Verma | |
Remove extra `make` | |||
2015-11-02 | Add notice about offline migrations | Kamil Trzciński | |
2015-05-12 | update migration style guide | Valery Sizov | |
2015-05-11 | Small improvements to style guide. | Sytse Sijbrandij | |
2015-05-11 | create migration style guide. Fixes #2305 | Job van der Voort | |