summaryrefslogtreecommitdiff
path: root/db
Commit message (Collapse)AuthorAgeFilesLines
* add rss_token attribute to user modelAlexis Reigel2017-05-242-1/+22
|
* Address reviewDouwe Maan2017-05-241-18/+0
|
* Add system note with link to diff comparison when MR discussion becomes outdatedDouwe Maan2017-05-232-1/+33
|
* Fix migrations for older PostgreSQL versionsfix-retried-for-postgresKamil Trzcinski2017-05-231-4/+6
| | | | | - Do not care about error when creating index on PostgreSQL - Test against PostgreSQL 9.2
* Fixes broken MySQL migration for retriedKamil Trzcinski2017-05-221-3/+26
| | | | | | > Mysql2::Error: Table 'ci_builds' is specified twice, both as a target for 'UPDATE' and as a separate source for data: UPDATE `ci_builds` SET `retried` = ((SELECT MAX(ci_builds2.id) Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/32647
* Merge branch 'bvl-fix-already-renamed-paths' into 'master'Douwe Maan2017-05-193-1/+155
|\ | | | | | | | | | | | | Fix incorrect renaming migrations Closes #32526 and #32530 See merge request !11515
| * Rename users on mysqlbvl-fix-already-renamed-pathsBob Van Landuyt2017-05-191-4/+15
| |
| * Don't try to rename `-`Bob Van Landuyt2017-05-191-1/+0
| |
| * Simpler way of renaming usersBob Van Landuyt2017-05-191-9/+6
| |
| * Fix incorrectly renamed routesBob Van Landuyt2017-05-192-1/+105
| |
| * Rename users that had their namespace renamedBob Van Landuyt2017-05-192-1/+44
| |
* | Add temporary partial index to speed up the migrationupdate-retried-migrationLin Jen-Shin2017-05-191-14/+28
|/ | | | Closes #32469
* Adding NULL:false constraint with change_column_null instead of change_columnfix_set_null_false_migrationValery Sizov2017-05-181-4/+4
|
* Merge branch 'fix-issue-assignee-trigger' into 'master'Stan Hu2017-05-171-1/+1
|\ | | | | | | | | | | | | Check if OLD is set when migrating issue assignees Closes #32439 See merge request !11461
| * Check if OLD is set when migrating issue assigneesYorick Peterse2017-05-171-1/+1
| | | | | | | | | | | | The procedure for migrating issue assignees is invoked on both an INSERT and UPDATE. This means it will fail for INSERTs because OLD is set to NULL in this case.
* | Fix data migration from trigger schedulesZ.J. van de Weg2017-05-171-0/+7
|/
* Improve migration for Multipple issue assignee featureValery Sizov2017-05-167-52/+204
|
* Merge branch 'bvl-rename-build-events-to-job-events' into 'master' cherry-pick-0663458cDouwe Maan2017-05-165-3/+75
| | | | | | | Rename `build_events` to `job_events` Closes #31620 See merge request !11287
* Merge branch 'zj-pipeline-schedule-owner' into 'master' Kamil Trzciński2017-05-162-1/+37
|\ | | | | | | | | | | | | Foreign key for Pipeline schedule owner Closes #31932 See merge request !11233
| * Add foreign key on pipeline_schedules.owner_idzj-pipeline-schedule-ownerZ.J. van de Weg2017-05-152-1/+37
| | | | | | | | | | | | Set to nullify, so the settings remain if the user is deleted. Fixes gitlab-org/gitlab-ce#31932
* | Revert "Merge branch 'bvl-rename-build-events-to-job-events' into 'master'"Douwe Maan2017-05-155-75/+3
| | | | | | This reverts merge request !11287
* | Merge branch 'bvl-rename-build-events-to-job-events' into 'master' Douwe Maan2017-05-155-3/+75
|\ \ | | | | | | | | | | | | | | | | | | Rename `build_events` to `job_events` Closes #31620 See merge request !11287
| * | Rename `build_events` columns to `job_events`Bob Van Landuyt2017-05-155-3/+75
| |/
* | Merge branch 'enable-auto-cancelling-by-default' into 'master' Kamil Trzciński2017-05-153-1/+29
|\ \ | | | | | | | | | | | | | | | | | | Make auto-cancelling pending pipelines on by default Closes #30656 See merge request !11023
| * | Disable transaction for updating the tableLin Jen-Shin2017-05-151-0/+2
| | |
| * | Move to post_migrate and use update_column_in_batchesLin Jen-Shin2017-05-151-2/+1
| | |
| * | Make auto-cancelling pending pipelines on by defaultLin Jen-Shin2017-05-153-1/+28
| |/
* | Add missing newline in schemaLin Jen-Shin2017-05-151-1/+1
| |
* | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-05-159-5/+144
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add-index-for-auto_canceled_by_id-mysql * upstream/master: (224 commits) Added balsamiq jasmine integration test Add support for deltas_only under Gitaly Codestyle Update CHANGELOG.md for 9.1.4 Update CHANGELOG.md for 9.1.4 Update CHANGELOG.md for 9.1.4 Update CHANGELOG.md for 9.1.4 Minor cosmetic fixes in hooks admin screen Documentation for repository_update_events Changelog Update SystemHooks API to expose and handle new repository_update_events Make the new repository_update_events configurable in System Hooks UI Added repository_update hook Wait for requests after each Spinach scenario instead of feature Remove trailing comma in dependency linker to satisfy Rubocop Fix specs New branch new mr docs Relax rake backup regex to handle CE and EE RCs Fix conflict resolution from corrupted upstream Removed all instances of Object.assign by using es6 classes, also includes some … ...
| * Added repository_update hookGabriel Mazetto2017-05-122-0/+16
| |
| * Merge branch 'zj-clean-up-ci-variables-table' into 'master' Yorick Peterse2017-05-113-3/+40
| |\ | | | | | | | | | | | | | | | | | | Clean up ci variables table Closes #31799 See merge request !11186
| | * Remove rails dependent: :destroy statementZ.J. van de Weg2017-05-111-1/+0
| | | | | | | | | | | | | | | | | | | | | Enforced by the database, and no callbacks need to be called. Combined with 7b9b2c6099 and 294a8b8a6d this resolves gitlab-org/gitlab-ce#31799
| | * Add a foreign key to ci_variables to projectsZ.J. van de Weg2017-05-113-3/+29
| | | | | | | | | | | | | | | Variables shouldn't exist without a project, so a foreign key was added with CASCADE'ing effects.
| | * Prevent NULL values on ci_variables columnsZ.J. van de Weg2017-05-111-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To be more specific; key, and project_id. If either of these is NULL its wrong, because: 1. storing a key value pair without key is just plain wrong 2. all variables should belong to a project Non of these cases existed on the staging database.
| * | Fix MySQL build failuredm-fix-mysql-failureDouwe Maan2017-05-101-1/+1
| |/
| * Merge branch 'retried-in-database-mysql' into 'master' Regis Boudinot2017-05-103-0/+39
| |\ | | | | | | | | | | | | | | | | | | Retried in database Closes #25737 See merge request !11115
| | * Make retried to be nullableKamil Trzcinski2017-05-093-10/+4
| | |
| | * Store retried in database for CI buildsretried-in-database-mysqlKamil Trzcinski2017-05-073-0/+45
| | |
| * | Merge branch '27144-enforce-rubocop-trailing_commas-no_comma-style' into ↵Robert Speicher2017-05-102-2/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Resolve "Use consistent style for trailing commas" Closes #27144 See merge request !11063
| | * | Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-102-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
| * | | No user needed to cleanup namespaceless pending delete projectsToon Claes2017-05-101-6/+3
| | | | | | | | | | | | | | | | | | | | Since this is a cleanup, ran by a post-deploy, there is no need to lookup the admin to run the cleanup.
| * | | Use worker to destroy namespaceless projects in post-deployToon Claes2017-05-102-44/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Destroying projects can be very time consuming. So instead of destroying them in the post-deploy, just schedule them and make Sidekiq do the hard work. They are scheduled in batches of 5000 records. This way the number of database requests is limited while also the amount data read to memory is limited.
| * | | No user is needed to delete a projectToon Claes2017-05-101-4/+1
| | | |
| * | | Add post-deploy migrate to cleanup projects in pending delete stateToon Claes2017-05-101-0/+47
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | There are many projects in `pending_delete` state, this post-deploy migration cleans them up. The script is based on https://gitlab.com/gitlab-org/gitlab-ce/snippets/1648654 and https://gitlab.com/gitlab-org/gitlab-ce/snippets/1611429. The use of these scripts were described in https://gitlab.com/gitlab-com/infrastructure/issues/888.
* | | Merge branch 'master' into 'add-index-for-auto_canceled_by_id-mysql'Kamil Trzciński2017-05-0911-26/+242
|\ \ \ | |/ / | | | | | | # Conflicts: # db/schema.rb
| * | Small code improvements and add migration specFelipe Artur2017-05-083-2/+1
| | |
| * | Fix specs 2Felipe Artur2017-05-081-12/+14
| | |
| * | Populate merge requests head_pipeline_idFelipe Artur2017-05-082-1/+24
| | |
| * | Preloads head pipeline for each merge requestFelipe Artur2017-05-082-0/+9
| | |
| * | Add Pipeline Schedules that supersedes experimental Trigger ScheduleZeger-Jan van de Weg2017-05-079-26/+209
| |/