summaryrefslogtreecommitdiff
path: root/lib/tasks/migrate
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate the warnings for databaseLin Jen-Shin2018-01-261-11/+9
|
* Rework indexes on redirect_routes to be more effective and enforce a case ↵fix-redirect-routes-schemaGreg Stark2018-01-181-0/+2
| | | | insensitive unique path
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+3
|
* Add index on namespaces lower(name) for UsersController#existsindex-namespaces-lower-nameGreg Stark2017-12-211-0/+2
|
* Add lower path index to redirect_routesmk-add-lower-path-index-to-redirect-routesMichael Kozono2017-07-251-0/+2
|
* Add table for files in merge request diffsSean McGivern2017-06-161-0/+2
| | | | | | | | | | | | | | | | This adds an ID-less table containing one row per file, per merge request diff. It has a column for each attribute on Gitlab::Git::Diff that is serialised currently, with the advantage that we can easily query the attributes of this new table. It does not migrate existing data, so we have fallback code when the legacy st_diffs column is present instead. For a merge request diff to be valid, it should have at most one of: * Rows in this new table, with the correct merge_request_diff_id. * A non-NULL st_diffs column. It may have neither, if the diff is empty.
* Add index_redirect_routes_path_for_link migration to setup_postgresql.rakeLuke "Jared" Bennett2017-05-081-0/+1
|
* Index redirect_routes path for LIKEMichael Kozono2017-05-051-0/+1
|
* Fix caching large snippet HTML content on MySQL databasesNick Thomas2017-05-031-0/+2
|
* Add LIKE index for routes.pathYorick Peterse2017-03-211-0/+2
| | | | | | | | Nested groups support uses queries along the lines of `path LIKE 'X/%'`. For these queries to use an index on PostgreSQL we need to use either the varchar_pattern_ops or text_pattern_ops operator class. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/29554
* Don’t exclude some file in lib from rubocopDouwe Maan2017-02-231-1/+1
|
* Add AddLowerPathIndexToRoutes to setup_postgresql.rakeDmitriy Zaporozhets2016-12-131-0/+4
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Replace colorize gem with rainbow.Connor Shea2016-06-031-3/+3
| | | | | | | | | | | | | Colorize is a gem licensed under the GPLv2, so we can’t use it in GitLab without relicensing GitLab under the terms of the GPL. Rainbow is licensed under the MIT license and does the exact same thing as Colorize, so Rainbow was added in place of Colorize. The syntax is slightly different for Rainbow vs. Colorize, and was updated in accordance. The gem is still a dependency of Spinach, so it’s included in the development/test environments, but won’t be packaged with the actual product, and therefore doesn’t require we relicense the product. An attempt at relicensing Colorize was made, but didn’t succeed as the library owner never responded. Rainbow library: https://github.com/sickill/rainbow Relevant issue regarding licensing in GitLab's gems: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3775
* Improve performance of User.by_loginuser-by-login-performanceYorick Peterse2015-10-151-0/+2
| | | | | | | | | | | | | | | | | Performance is improved in two steps: 1. On PostgreSQL an expression index is used for checking lower(email) and lower(username). 2. The check to determine if we're searching for a username or Email is moved to Ruby. Thanks to @haynes for suggesting and writing the initial implementation of this. Moving the check to Ruby makes this method an additional 1.5 times faster compared to doing the check in the SQL query. With performance being improved I've now also tweaked the amount of iterations required by the User.by_login benchmark. This method now runs between 900 and 1000 iterations per second.
* Added dedicated Rake task for setting up PostgresYorick Peterse2015-10-081-0/+6
| | | | | This ensures any PostgreSQL specific schema changes (e.g. expression indexes) are created when setting up the database.
* Replace GITLAB with GitLab in rake task descriptionsDmitriy Zaporozhets2015-06-232-2/+2
|
* Adjust MySQL limits for existing installationsJacob Vosmaer2014-04-231-9/+2
|
* Add mysql limits to db during setupDmitriy Zaporozhets2014-03-131-0/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Changed limits to a higher orderJeroen van Baarsen2014-03-121-3/+3
|
* Added rake task to add limits back in mysqlJeroen van Baarsen2014-03-111-0/+13
|
* Remove old migration tasksDmitriy Zaporozhets2013-08-267-110/+0
| | | | | | You should update to 6.0 before proceed with update to higher version. So its no reason to keep old tasks any more. It should be still available in 6-0-stable but not in master
* Add iids to milestones. Moved iids logic to separate concernDmitriy Zaporozhets2013-08-211-0/+15
|
* Fix migrate_iids for issuesDmitriy Zaporozhets2013-08-201-1/+1
|
* Merge branch 'feature/internal_ids' of /home/git/repositories/gitlab/gitlabhqDmitriy Zaporozhets2013-08-201-0/+33
|\
| * Iid improvemetsDmitriy Zaporozhets2013-08-191-2/+4
| | | | | | | | | | | | * call set_iid before validation * make rake task pass event if objects are invalid * show iid in comment event at dashboard
| * Create task to create iid for existing issues/mrDmitriy Zaporozhets2013-08-191-0/+31
| |
* | Better message for migrating global projectsDmitriy Zaporozhets2013-08-201-2/+9
|/
* Move diff parsing to own class. Correctly identify note diff lineDmitriy Zaporozhets2013-08-041-1/+1
|
* Store diff with line note. It makes possible to see inline notes with proper ↵Dmitriy Zaporozhets2013-08-041-0/+16
| | | | diff even if MR diff changed
* Delete duplicate keys in migrate_keys taskJacob Vosmaer2013-08-021-0/+5
|
* Fix typosJohannes Schleifenbaum2013-07-291-1/+1
|
* store and display public key fingerprintDmitriy Zaporozhets2013-06-241-0/+15
|
* You should not be able to remove a Group ownerDmitriy Zaporozhets2013-06-221-0/+16
|
* Migrate global project taks. Removed more teams related functionalityDmitriy Zaporozhets2013-06-191-3/+7
|
* Remove Global namespace from options. Prepared file for migration of global ↵Dmitriy Zaporozhets2013-06-191-0/+12
| | | | projects
* Migrate notes.line_code format.baba2013-05-111-0/+13
| | | | | | | | | Since version 4.1, notes.line_code means: {SHA1 hash of file path}_{old line}_{new line} but the older version means: {file index of the commit}_{old line}_{new line} This rake task migrate the above differences.
* migrate milestones with nil stateDmitriy Zaporozhets2013-04-161-0/+4
|
* Warn user about losing merge request diffDmitriy Zaporozhets2013-04-151-0/+7
|
* Remove wiki migrator. We dont need it any more. Users should migrate to 5.0 ↵Dmitriy Zaporozhets2013-04-101-42/+0
| | | | first
* separate rake task for migration and persistent oneDmitriy Zaporozhets2013-04-052-0/+53