summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/database_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix Gitlab::Database.bulk_insert for non-UTF-8 data34324-gitlab-db-seed-is-brokenSean McGivern2017-06-261-0/+4
|
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-4/+4
|
* Add table for files in merge request diffsSean McGivern2017-06-161-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 offensesRobert Speicher2017-06-141-4/+12
|
* removes redundant code from database.rb29056-backport-ee-cleanup-database-fileTiago Botelho2017-04-111-4/+4
|
* Added Gitlab::Database.configYorick Peterse2017-03-171-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 hostYorick Peterse2017-02-221-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 Peterse2017-02-141-0/+48
|\ | | | | | | | | Introduce Gitlab::Database.with_connection_pool See merge request !9192
| * Have some simple way to create connection poolLin Jen-Shin2017-02-141-0/+48
| |
* | Don't connect in Gitlab::Database.adapter_namefix-ar-connection-leaksYorick Peterse2017-02-131-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 environmentDouwe Maan2017-02-061-0/+16
|
* Improve Issuable.order_labels_priorityRémy Coutable2016-06-061-0/+16
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix undefined method `postgresql?` during migrationrs-gitlab-database-moduleRobert Speicher2016-02-151-0/+32
|
* Display database type and version in Administration dashboardrs-database-infoRobert Speicher2016-02-021-0/+20
| | | | Closes #12900
* Tag lib specsDouwe Maan2015-12-091-1/+1
|
* Added methods for detecting MySQL/PostgreSQLYorick Peterse2015-10-071-0/+17
These two methods remove the need for manually going into ActiveRecord::Base.connection all over the place.