Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42 | GitLab Bot | 2021-08-19 | 1 | -394/+22 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42 | GitLab Bot | 2021-07-20 | 1 | -0/+90 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42 | GitLab Bot | 2021-06-16 | 1 | -6/+28 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42 | GitLab Bot | 2021-05-19 | 1 | -5/+25 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43 | GitLab Bot | 2021-04-20 | 1 | -2/+2 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40 | GitLab Bot | 2021-03-16 | 1 | -0/+108 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42 | GitLab Bot | 2020-10-21 | 1 | -81/+20 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@13-3-stable-ee | GitLab Bot | 2020-08-28 | 1 | -40/+0 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@13-2-stable-ee | GitLab Bot | 2020-07-23 | 1 | -0/+20 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@13-2-stable-ee | GitLab Bot | 2020-07-20 | 1 | -38/+75 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@master | GitLab Bot | 2020-02-18 | 1 | -0/+6 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@master | GitLab Bot | 2020-01-10 | 1 | -0/+14 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@master | GitLab Bot | 2019-12-17 | 1 | -0/+1 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@master | GitLab Bot | 2019-12-10 | 1 | -0/+26 |
| | |||||
* | Add latest changes from gitlab-org/gitlab@master | GitLab Bot | 2019-10-11 | 1 | -14/+0 |
| | |||||
* | CE port: allow SRV records in DB service discoverydb_load_balancing_service_discovery_srv | Tiger | 2019-08-23 | 1 | -0/+11 |
| | |||||
* | Further remove code branches by database type | Andreas Brandl | 2019-07-29 | 1 | -60/+18 |
| | | | | | | | | We dropped MySQL support and a lot of mysql specific code has been removed in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29608. This comes in from the other direction and removes any `if postgresql?` branches. | ||||
* | Add frozen_string_literal to spec/lib (part 1) | Thong Kuah | 2019-07-26 | 1 | -0/+2 |
| | | | | | Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758 | ||||
* | Remove dead MySQL code | Nick Thomas | 2019-07-23 | 1 | -106/+29 |
| | | | | None of this code can be reached any more, so it can all be removed | ||||
* | Add helper method to return a human-friendly name for database adapter | Douglas Barbosa Alexandre | 2019-03-21 | 1 | -0/+14 |
| | |||||
* | Rename pg_stat_wal_receiver_supported? DB helper | Ash McKenzie | 2019-03-14 | 1 | -0/+38 |
| | | | | | | | From pg_stat_wal_receiver_supported? to postgresql_minimum_supported_version? Also add test coverage | ||||
* | Remove rails4 specific code | Jasper Maes | 2018-12-16 | 1 | -7/+2 |
| | |||||
* | Remove rails 4 support in CI, Gemfiles, bin/ and config/ | Jasper Maes | 2018-12-14 | 1 | -4/+2 |
| | |||||
* | CE port of 'Move EE specific code from Gitbab::Database into ee' | Douglas Barbosa Alexandre | 2018-11-26 | 1 | -1/+21 |
| | |||||
* | Backport various EE changes to Gitlab::Databasebackport-gitlab-database | Yorick Peterse | 2018-07-24 | 1 | -0/+86 |
| | | | | | | These changes are useful for CE as well. For example, the MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20720 can make use of some of the backported methods. | ||||
* | Ability to check if underlying database is read only | Brett Walker | 2018-07-06 | 1 | -0/+29 |
| | |||||
* | Use data_source_exists? instead of table_exists?rails5-database | Jarka Kadlecová | 2018-06-14 | 1 | -2/+7 |
| | | | | Use data_source_exists? where possible instead of table_exists? in order to be Rails5 compatible | ||||
* | Memoize Gitlab::Database.versionmemoize-database-version | Yorick Peterse | 2018-05-17 | 1 | -0/+14 |
| | | | | | This removes the need for running a database query every time we want to check the database version. | ||||
* | Cache table_exists?('application_settings') to reduce repeated schema reloadssh-cache-table-exists | Stan Hu | 2018-03-15 | 1 | -0/+12 |
| | | | | Closes #43355 | ||||
* | Cache column_exists? for application settingssh-cache-column-exists | Stan Hu | 2018-03-15 | 1 | -0/+11 |
| | | | | | | | This is most a backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4987/diffs but includes other columns that use column_exists? in a way that may cause unnecessary schema loads. | ||||
* | Merge branch 'mk-add-old-attachments-to-uploads-table' into 'master' | Stan Hu | 2017-12-07 | 1 | -0/+16 |
|\ | | | | | | | | | Add old files to uploads table See merge request gitlab-org/gitlab-ce!15270 | ||||
| * | Add tests for disable_quote option | Michael Kozono | 2017-12-01 | 1 | -0/+16 |
| | | |||||
* | | add Gitlab::Database.replication_slots_supported? | Brett Walker | 2017-12-05 | 1 | -0/+22 |
|/ | |||||
* | Add returning IDs to Gitlab::Database.bulk_insert | Yorick Peterse | 2017-11-07 | 1 | -0/+20 |
| | | | | | | | This adds the keyword argument "return_ids" to Gitlab::Database.bulk_insert. When set to `true` (and PostgreSQL is used) this method will return an Array of the IDs of the inserted rows, otherwise it will return an empty Array. | ||||
* | Handle large values on `MergeRequestDiffCommit` dates39561-seed_fu-fails-to-load-gitlab-test | Alejandro Rodríguez | 2017-10-30 | 1 | -0/+22 |
| | |||||
* | Use a specialized class for querying events | Yorick Peterse | 2017-08-10 | 1 | -0/+22 |
| | | | | | | | | | | | | | | | This changes various controllers to use the new EventCollection class for retrieving events. This class uses a JOIN LATERAL query on PostgreSQL to retrieve queries in a more efficient way, while falling back to a simpler / less efficient query for MySQL. The EventCollection class also includes a limit on the number of events to display to prevent malicious users from cycling through all events, as doing so could put a lot of pressure on the database. JOIN LATERAL is only supported on PostgreSQL starting with version 9.3.0 and as such this optimisation is only used when using PostgreSQL 9.3 or newer. | ||||
* | Remove superfluous lib: true, type: redis, service: true, models: true, ↵ | Rémy Coutable | 2017-07-27 | 1 | -1/+1 |
| | | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Fix Gitlab::Database.bulk_insert for non-UTF-8 data34324-gitlab-db-seed-is-broken | Sean McGivern | 2017-06-26 | 1 | -0/+4 |
| | |||||
* | Enable Style/DotPosition Rubocop :cop: | Grzegorz Bizon | 2017-06-21 | 1 | -4/+4 |
| | |||||
* | Add table for files in merge request diffs | Sean McGivern | 2017-06-16 | 1 | -0/+49 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | Correct RSpec/SingleLineHook cop offenses | Robert Speicher | 2017-06-14 | 1 | -4/+12 |
| | |||||
* | removes redundant code from database.rb29056-backport-ee-cleanup-database-file | Tiago Botelho | 2017-04-11 | 1 | -4/+4 |
| | |||||
* | Added Gitlab::Database.config | Yorick Peterse | 2017-03-17 | 1 | -4/+10 |
| | | | | | | | | This returns the ActiveRecord configuration for the current environment. While CE doesn't use this very often, EE will use it in a few places for the database load balancing code. I'm adding this to CE so we don't end up with merge conflicts in this file. | ||||
* | Allow setting of a custom connection pool host | Yorick Peterse | 2017-02-22 | 1 | -3/+18 |
| | | | | | | | This allows you to set a custom host when calling Gitlab::Database.create_connection_pool. This is necessary for load balancing as in this case we want to inherit all settings except for the hostname. | ||||
* | Merge branch 'create-connection-pool' into 'master' | Yorick Peterse | 2017-02-14 | 1 | -0/+48 |
|\ | | | | | | | | | Introduce Gitlab::Database.with_connection_pool See merge request !9192 | ||||
| * | Have some simple way to create connection pool | Lin Jen-Shin | 2017-02-14 | 1 | -0/+48 |
| | | |||||
* | | Don't connect in Gitlab::Database.adapter_namefix-ar-connection-leaks | Yorick Peterse | 2017-02-13 | 1 | -0/+6 |
|/ | | | | | | We don't need to connect when requesting the name of the database adapter. This in turn should prevent us from requesting/leaking connections just by asking whether we're using PostgreSQL or MySQL. | ||||
* | Improve performance of finding last deployed environment | Douwe Maan | 2017-02-06 | 1 | -0/+16 |
| | |||||
* | Improve Issuable.order_labels_priority | Rémy Coutable | 2016-06-06 | 1 | -0/+16 |
| | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Fix undefined method `postgresql?` during migrationrs-gitlab-database-module | Robert Speicher | 2016-02-15 | 1 | -0/+32 |
| |