summaryrefslogtreecommitdiff
path: root/lib/tasks/gitlab/db.rake
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@15-5-stable-eev15.5.0-rc42GitLab Bot2022-10-201-8/+36
|
* Add latest changes from gitlab-org/gitlab@15-3-stable-eev15.3.0-rc42GitLab Bot2022-08-181-1/+1
|
* Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42GitLab Bot2022-07-201-1/+65
|
* Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42GitLab Bot2022-06-201-9/+7
|
* Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42GitLab Bot2022-05-191-1/+10
|
* Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42GitLab Bot2022-04-201-43/+81
|
* Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42GitLab Bot2022-03-181-37/+69
|
* Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42GitLab Bot2022-02-181-11/+33
|
* Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42GitLab Bot2022-01-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@14-6-stable-eev14.6.0-rc42GitLab Bot2021-12-201-13/+36
|
* Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42GitLab Bot2021-11-181-18/+27
|
* Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42GitLab Bot2021-10-201-28/+7
|
* Add latest changes from gitlab-org/gitlab@14-3-stable-eev14.3.0-rc42GitLab Bot2021-09-201-1/+7
|
* Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42GitLab Bot2021-08-191-2/+8
|
* Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42GitLab Bot2021-07-201-48/+10
|
* Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42GitLab Bot2021-06-161-4/+23
|
* Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42GitLab Bot2021-05-191-5/+21
|
* Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43GitLab Bot2021-04-201-17/+2
|
* Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42GitLab Bot2021-02-181-0/+34
|
* Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42GitLab Bot2020-12-171-5/+31
|
* Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42GitLab Bot2020-10-211-2/+32
|
* Add latest changes from gitlab-org/gitlab@13-4-stable-eeGitLab Bot2020-09-191-0/+7
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-0/+37
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-1/+34
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-091-2/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-221-1/+16
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-231-5/+5
|
* Backport EE changes made to the scripts/ directoryresolve-scripts-differencesYorick Peterse2019-07-291-0/+8
| | | | | | This backport changes made by EE to the files in the scripts/ directory. This comes with a few changes to some scripts to make them work in the single codebase setup.
* Remove unneeded monkey-patch54478-table_exists-not-compatible-with-rails-5-1Heinrich Lee Yu2019-07-251-1/+1
| | | | | Changes all calls to data_source_exists? to table_exists? since that is the intent of these calls
* Remove dead MySQL codeNick Thomas2019-07-231-10/+3
| | | | None of this code can be reached any more, so it can all be removed
* Fix attempting to drop views in PostgreSQLweimeng-master-patch-83366Wei-Meng Lee2019-04-021-1/+4
|
* Fix MySQL error when truncating a table that doesn't existJose Torres2019-02-051-2/+3
| | | | | | | This adds a conditional statement before truncating the `schema_migrations` table. This comit also ports this code to Rails 5.
* Ensure the schema is loaded with post_migrations includedDJ Mountney2018-09-111-0/+2
| | | | | | If doing a schema load, the post_migrations should also be marked as up, even if SKIP_POST_DEPLOYMENT_MIGRATIONS was set, otherwise future migration runs will be broken.
* Fixes an issue where migrations instead of schema loading were runDJ Mountney2018-06-271-1/+3
| | | | | If you called rake gitlab:db:drop_tables before running gitlab-ctl reconfigure (or rake gitlab:db:configure)
* Fix caching large snippet HTML content on MySQL databasesNick Thomas2017-05-031-0/+1
|
* Only check new migrations in 'rake down_timecheck'dm-downtime-check-only-added-filesDouwe Maan2017-03-081-1/+1
|
* Don’t exclude some file in lib from rubocopDouwe Maan2017-02-231-4/+4
|
* Disable MySQL foreign key checks before dropping all tablesDrew Blessing2016-07-251-0/+7
|
* Added checks for migration downtimemigration-downtime-tagsYorick Peterse2016-07-201-0/+15
| | | | | | | | | | | 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]
* Properly quote table name in Rake task for MySQL and PostgreSQL compatibilityfix-issue-15259-postgresqlStan Hu2016-06-091-1/+1
| | | | | | !4318 broke the gitlab:db:drop_tables functionality for PostgreSQL. Closes #15259
* Merge branch 'fix_issue_15259' into 'master' Stan Hu2016-06-091-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix bug with SQL syntax error during backup restoration ## What does this MR do? It properly escapes the table name in the `DROP TABLE IF EXISTS ...` statement used during restore of a backup. ## Are there points in the code the reviewer needs to double check? Please check compatibility with PostgreSQL ## Why was this MR needed? Fix an issue with backups can not be restored if MySQL is used as database for GitLab. ## What are the relevant issue numbers? #15259 ## Screenshots (if relevant) - See merge request !4318
| * Fix bug with SQL syntax error during backup restorationDaniel Beyer2016-05-271-1/+1
| | | | | | closes #15259
* | Replace colorize gem with rainbow.Connor Shea2016-06-031-4/+4
|/ | | | | | | | | | | | | 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
* Switch the gitlab:db:configure task to use tables.any? instead of looking ↵DJ Mountney2016-05-251-1/+1
| | | | specifically for the schema_migrations table
* Update hash syntax and add changelog for the gitlab:db:configure rake taskDJ Mountney2016-05-251-2/+1
|
* Add a gitlab:db:configure rake task to handle conditionally seeding or ↵DJ Mountney2016-05-251-0/+11
| | | | migrating the database.
* Add if exists to drop commandDrew Blessing2016-05-091-1/+3
|
* Rake drop tables with cascadeDrew Blessing2016-05-031-1/+4
|
* Reload the schema before restoring a database backupDrew Blessing2016-03-211-0/+35