summaryrefslogtreecommitdiff
path: root/db
Commit message (Collapse)AuthorAgeFilesLines
* Add many foreign keys to the projects tableYorick Peterse2017-07-064-5/+291
| | | | | | | | | | | | This removes the need for relying on Rails' "dependent" option for data removal, which is _incredibly_ slow (even when using :delete_all) when deleting large amounts of data. This also ensures data consistency is enforced on DB level and not on application level (something Rails is really bad at). This commit also includes various migrations to add foreign keys to tables that eventually point to "projects" to ensure no rows get orphaned upon removing a project.
* Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-07-057-11/+153
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 32815--Add-Custom-CI-Config-Path * upstream/master: (149 commits) Revert change to design. Go back to scrollable page Fixes the column widths for the new navigation options in settings Migrate #submodule_url_for to Gitaly Add test example for external commit status retries Fix invalid Rails.logger call in lib/gitlab/health_checks/fs_shards_check.rb Fix build for !12300. Log rescued exceptions to Sentry Fix issues with non-UTF8 filenames by always fixing the encoding of tree and blob paths Revert "Merge branch 'revert-12499' into 'master'" Prevent accidental deletion of protected MR source branch by repeating checks before actual deletion Improve the overall UX for the new monitoring dashboard Document that GitLab 9.3 requires the TRIGGER permission on MySQL Instrument Unicorn with Ruby exporter Remove group modal like remove project modal. Closes #33130 Update prometheus client gem Enables the option in user preferences to turn on the new navigation Add Jasmine tests for `OAuthRememberMe` Simplify authentication logic in the v4 users API for !12445. Use stub_application_setting when testing ApplicationHelper#support_url wait_for_requests is not needed when AJAX is not in play ...
| * Merge branch 'master' into 'fix/gb/improve-stage-id-foreign-key-migration'fix/gb/improve-stage-id-foreign-key-migrationGrzegorz Bizon2017-07-045-1/+112
| |\ | | | | | | | | | # Conflicts: # db/schema.rb
| | * Only indent if the subsequent line is a subqueryLin Jen-Shin2017-06-291-12/+12
| | |
| | * Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-06-291-0/+113
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add-ci_variables-environment_scope * upstream/master: (192 commits) Minor edits Job details won't scroll horizontally to show long lines Bring back branches badge to main project page Inserts exact matches of username, email and name to the top of the user search list Limit OpenGraph image size to 64x64 Improve changelog Split up MergeRequestsController Add parent_id back to the tests Make changelog more descriptive Update README.md to reflect where "Secret variables" are located Improve tests text Rename members_count to members_count_with_descendants and expose only to group admins Fix a bug where an invalid sort param value was passed to Gitaly Drop default ORDER scope when calling a find method on a Sortable model Add tests for project import state transition: [:started] => [:finished] Add CHANGELOG Perform housekeeping only when an import of a fresh project is completed Strip trailing whitespace in relative submodule URL Adjust projects spec on namespace fields Add "members_count" and "parent_id" data on namespaces API ...
| | * | Better indent the SQLadd-ci_variables-environment_scope-mysqlLin Jen-Shin2017-06-271-7/+10
| | | |
| | * | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-06-2712-0/+31
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add-ci_variables-environment_scope * upstream/master: (226 commits) Polish sidebar toggle Add changelog entry Fix optional args for POST :id/variables Update CHANGELOG.md for 9.3.1 Bump bootsnap to 1.1.1 Add explicit message when no runners on admin Fix endpoint not being update correctly Remove unused Gitlab::Git::Commit#to_diff argument Drop GFM support for the title of Milestone/MergeRequest in template Handle Promise rejections in mr_widget_pipeline_spec.js Handle missing pipeline in merge request widget Store merge request ref_fetched status in the database Tag a spec as :nested_groups since it fails on MySQL Bump premailer-rails gem to 1.9.7 and its dependencies to prevent network retrieval of assets Truncate long job names in environment view; wrap author to next line Replaces 'dashboard/merge_requests' spinach with rspec Update GITLAB_SHELL_VERSION to 5.0.6 Fix click not being able to find the current element to use trigger('click') instead make accepting mrs more prominent Remove last references to job for pipeline charts ...
| | * | | Rename instead of delete, feedback:Lin Jen-Shin2017-06-272-45/+35
| | | | | | | | | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12363#note_33449374
| | * | | Add back project_id index for MySQL if revertingLin Jen-Shin2017-06-231-2/+7
| | | | |
| | * | | Remove old project_id index and make sure mysql workLin Jen-Shin2017-06-233-5/+34
| | | | |
| | * | | We cannot delete the index for MySQL, because fkLin Jen-Shin2017-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | foreign key, I mean.
| | * | | Remove duplicated records and add unique constraintLin Jen-Shin2017-06-224-2/+70
| | | | |
| | * | | Add environment_scope column to ci_variables tableLin Jen-Shin2017-06-212-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is merely to make CE and EE more compatible. See the EE merge request at: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2112
| * | | | Check foreign keys in migration in separate conditionalGrzegorz Bizon2017-07-041-1/+15
| | | | |
| * | | | Bump database schema versionGrzegorz Bizon2017-07-041-1/+1
| | | | |
| * | | | Improve stage_id in ci_builds foreign key migrationGrzegorz Bizon2017-07-032-9/+26
| | |_|/ | |/| |
* | | | Rename ci_config_file to ci_config_pathLin Jen-Shin2017-07-052-3/+3
| | | |
* | | | We don't need to disable transaction in this caseLin Jen-Shin2017-07-011-7/+0
| | | |
* | | | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-06-301-0/+113
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 32815--Add-Custom-CI-Config-Path * upstream/master: (123 commits) Backport changes to Projects::IssuesController and the search bar bugfix: use `require_dependency` to bring in DeclarativePolicy Resolve "Select branch dropdown is too close to branch name" Clean up issuable lists Defer project destroys within a namespace in Groups::DestroyService#async_execute Fixed new navgiation bar logo height in Safari Resolve "Issue dropdown persists when adding issue number to issue description" Move verification to block level instead of paragraph Revert "Merge branch 'dm-drop-default-scope-on-sortable-finders' into 'master'" Added code for defining SHA attributes Minor edits Job details won't scroll horizontally to show long lines Run mysql tests on stable preperation branches like 9-3-stable-patch-2 Bring back branches badge to main project page optimize translation content based on comments supplement traditional chinese in taiwan translation Inserts exact matches of username, email and name to the top of the user search list Remove Namespace model default scope override and write additional test to Project search optimize translation content based on comments Limit OpenGraph image size to 64x64 ...
| * | | Merge branch 'bvl-rename-all-reserved-paths' into 'master'Sean McGivern2017-06-291-0/+113
| |\ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | Rename all forbidden paths again Closes #32625 See merge request !11713
| | * | Disable statement timeoutBob Van Landuyt2017-06-261-0/+4
| | | |
| | * | Revert renames from a migrationBob Van Landuyt2017-06-261-0/+1
| | | |
| | * | Rename each route individuallyBob Van Landuyt2017-06-261-3/+3
| | | |
| | * | Rename all forbidden paths againBob Van Landuyt2017-06-261-0/+108
| | | |
* | | | Merge remote-tracking branch 'upstream/master' into ↵15041-Add-Custom-CI-Config-PathLin Jen-Shin2017-06-28352-774/+8433
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 15041-Add-Custom-CI-Config-Path * upstream/master: (12506 commits) Update CHANGELOG.md for 9.3.2 Update architecture.md Fix changelog entry file extension Fix head pipeline stored in merge request for external pipelines updated gitlab-ci.yml to compile locale Ignore JSON files generated from PO files Update mmap2 gem tha disables mmap_obj.gsub! as current implementation uses method that is no longer part of Ruby API Disable rainbow during SimpleExecutor specs to have consistence Slightly refactor pipeline schedules form in preparation for additions Resolve "Submitting reply to existing diff discussion using Cmd/Ctrl+Enter submits twice and refreshes page" Make the SimpleExecutor rescue exceptions in the executing Checks Resolve "Unable to access edit comment from dropdown menu in certain screen sizes" Update changelog item revert removal of requestAnimationFrame and move to a separate MR/discussion rename getEmojiCategoryMap and remove unnecessary parameter Action Buttons on Prio Labels working again by setting pointer events to none on… Remove 'contains' option from Commit.find_all Remove Gitlab::Git::Repository#find_all Use latest chrome and chrome driver in GitLab QA Polish sidebar toggle ...
| * | | Merge branch '34052-store-mr-ref-fetched-in-database' into 'master'Sean McGivern2017-06-272-1/+11
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | Store merge request ref_fetched status in the database Closes #34052 See merge request !12424
| | * | Store merge request ref_fetched status in the database34052-store-mr-ref-fetched-in-databaseAdam Niedzielski2017-06-262-1/+11
| | |/ | | | | | | | | | Closes #34052
| * | Merge branch 'master' into fix/gb/improve-updating-column-in-batches-helperGrzegorz Bizon2017-06-2221-106/+174
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (56 commits) File view buttons Don't reset the session when the example failed, because we need capybara-screenshot to have access to it Resolve "MR comment + system note highlight don't have the same width" Add feature spec for dashboard state filter tabs Wording of Mysql support. a new feature checklist and more elaborate documentation requirements Filter archived project in API v3 only if param present Revert to using links instead of buttons in Issuable Index tabs. Do not run the codeclimate job on docs-only changes Only show gray footer space if environment actions exist Migrate Gitlab::Git::Blob.find to Gitaly Backport filtered search lazy token consistent state fix Add a comment explaining how the branch clean up happens Fix Github::Representation::PullRequest#source_branch_exists? Add CHANGELOG Fix GitHub importer performance on branch existence check Rebuild the dynamic path before validating it Rename stage ref migration specs to match a class name Enable Style/DotPosition Rubocop :cop: Revert "Merge branch 'winh-merge-request-related-issues' into 'master'" ... Conflicts: db/post_migrate/20170526185921_migrate_build_stage_reference.rb
| | * Merge branch 'fix/gb/improve-build-stage-reference-migration' into 'master'Kamil Trzciński2017-06-216-23/+75
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | Improve build stages reference migration Closes #33866 See merge request !12337
| | | * Merge branch 'master' into 'fix/gb/improve-build-stage-reference-migration'Grzegorz Bizon2017-06-213-1/+17
| | | |\ | | | | | | | | | | | | | | | # Conflicts: # db/schema.rb
| | | * | Bump build stage id reference migration identifierGrzegorz Bizon2017-06-212-15/+34
| | | | |
| | | * | Fix adding/removing foreign keys on MySQLGrzegorz Bizon2017-06-213-4/+3
| | | | |
| | | * | Fix build stages reference migrationGrzegorz Bizon2017-06-215-5/+39
| | | | |
| | * | | Merge branch 'fix/gb/improve-autocancel-pipelines-migraton' into 'master'Kamil Trzciński2017-06-211-0/+2
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Disable statement timeout in CI pipelines migration See merge request !12268
| | | * | | Disable statement timeout in CI pipelines migrationfix/gb/improve-autocancel-pipelines-migratonGrzegorz Bizon2017-06-191-0/+2
| | | |/ /
| | * | | Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-2113-82/+82
| | | |/ | | |/|
| | * | Merge branch 'add-index-for-head-pipeline-id' into 'master'Yorick Peterse2017-06-212-1/+17
| | |\ \ | | | | | | | | | | | | | | | | | | | | Add index for head pipeline See merge request !12273
| | | * | Add index for head pipeline idadd-index-for-head-pipeline-idKamil Trzcinski2017-06-212-1/+17
| | | |/
| * | | Fix migration specs that can not run within transactionGrzegorz Bizon2017-06-211-0/+2
| | | |
| * | | Disable transactions in migrations that should not use itGrzegorz Bizon2017-06-2110-0/+21
| |/ /
| * | Replace invalid chars while seeding environmentsZeger-Jan van de Weg2017-06-211-1/+1
| |/
| * Add table for files in merge request diffsSean McGivern2017-06-164-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Migration - Remove position field from issues and merge requestsFelipe Artur2017-06-162-3/+9
| |
| * Deserialise existing custom notification settingsdeserialize-custom-notificationsSean McGivern2017-06-152-1/+56
| | | | | | | | | | | | Create a post-deployment migration to update all existing notification settings with at least one custom level enabled to the new format. Also handle the same conversion when updating settings, to catch any stragglers.
| * Add columns for custom notification settingsSean McGivern2017-06-152-0/+38
| | | | | | | | | | | | Add columns for each custom notification level, defaulting to null. Read from those columns if non-null, otherwise fall back to the serialized column. Writing will write to the new column if `events` isn't manually set.
| * Help landing page customizations - db changesRobin Bobbitt2017-06-133-0/+21
| |
| * Add database helpers 'add_timestamps_with_timezone' and ↵32054-rails-should-use-timestamptz-database-type-for-postgresqlblackst0ne2017-06-1336-0/+41
| | | | | | | | 'timestamps_with_timezone'
| * Bring in security changes from the 9.2.5 releaseDJ Mountney2017-06-076-2/+455
| | | | | | | | | | | | | | | | | | | | | | | | | | Ran: - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch - git checkout -b 9-2-5-security-patch origin/v9.2.2 - git apply patchfile.patch - git commit - [Got the sha ref for the commit] - git checkout -b upstream-9-2-security master - git cherry-pick <SHA of the patchfile commit> - [Resolved conflicts] - git cherry-pick --continue
| * Sync email address from specified omniauth provider - db changesRobin Bobbitt2017-06-074-2/+42
| |
| * Merge branch 'feature/gb/migrate-pipeline-stages' into 'master'Kamil Trzciński2017-06-076-1/+126
| |\ | | | | | | | | | | | | Migrate pipeline stages in the database See merge request !11714