- 29 7月, 2019 1 次提交
-
-
由 Andreas Brandl 提交于
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.
-
- 26 7月, 2019 1 次提交
-
-
由 Thong Kuah 提交于
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
-
- 23 7月, 2019 1 次提交
-
-
由 Nick Thomas 提交于
None of this code can be reached any more, so it can all be removed
-
- 22 3月, 2019 1 次提交
-
-
- 14 3月, 2019 1 次提交
-
-
由 Ash McKenzie 提交于
From pg_stat_wal_receiver_supported? to postgresql_minimum_supported_version? Also add test coverage
-
- 12 2月, 2019 2 次提交
-
-
由 Stan Hu 提交于
-
由 Stan Hu 提交于
If there are any clients connected to the DB, PostgreSQL won't let you drop the database. It's possible that Sidekiq, Unicorn, or some other client will be hanging onto a connection, preventing the DROP DATABASE from working. To workaround this problem, this method cancels all the connections so that the db:reset command will work. Note that there's still a slight possibility a client connects after its connection is terminated. If this is an issue, we could solve it by revoking CONNECT access, but for now it seems this works. Closes https://gitlab.com/gitlab-org/gitlab-development-kit/issues/450
-
- 16 12月, 2018 1 次提交
-
-
由 Jasper Maes 提交于
-
- 15 12月, 2018 1 次提交
-
-
由 Jasper Maes 提交于
-
- 27 11月, 2018 1 次提交
-
-
- 24 7月, 2018 1 次提交
-
-
由 Yorick Peterse 提交于
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.
-
- 07 7月, 2018 1 次提交
-
-
由 Brett Walker 提交于
-
- 14 6月, 2018 1 次提交
-
-
由 Jarka Kadlecová 提交于
Use data_source_exists? where possible instead of table_exists? in order to be Rails5 compatible
-
- 18 5月, 2018 1 次提交
-
-
由 Yorick Peterse 提交于
This removes the need for running a database query every time we want to check the database version.
-
- 16 3月, 2018 2 次提交
-
-
由 Stan Hu 提交于
Closes #43355
-
由 Stan Hu 提交于
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.
-
- 06 12月, 2017 1 次提交
-
-
由 Brett Walker 提交于
-
- 02 12月, 2017 1 次提交
-
-
由 Michael Kozono 提交于
-
- 08 11月, 2017 1 次提交
-
-
由 Yorick Peterse 提交于
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.
-
- 31 10月, 2017 1 次提交
-
-
由 Alejandro Rodríguez 提交于
-
- 10 8月, 2017 1 次提交
-
-
由 Yorick Peterse 提交于
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.
-
- 27 7月, 2017 1 次提交
-
-
由 Rémy Coutable 提交于
Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true Signed-off-by: NRémy Coutable <remy@rymai.me>
-
- 27 6月, 2017 1 次提交
-
-
由 Sean McGivern 提交于
-
- 21 6月, 2017 1 次提交
-
-
由 Grzegorz Bizon 提交于
-
- 17 6月, 2017 1 次提交
-
-
由 Sean McGivern 提交于
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.
-
- 15 6月, 2017 1 次提交
-
-
由 Robert Speicher 提交于
-
- 12 4月, 2017 1 次提交
-
-
由 Tiago Botelho 提交于
-
- 18 3月, 2017 1 次提交
-
-
由 Yorick Peterse 提交于
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.
-
- 23 2月, 2017 4 次提交
-
-
由 Douwe Maan 提交于
This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9. # Conflicts: # .rubocop.yml # .rubocop_todo.yml # lib/gitlab/ci/config/entry/global.rb # lib/gitlab/ci/config/entry/jobs.rb # spec/lib/gitlab/ci/config/entry/factory_spec.rb # spec/lib/gitlab/ci/config/entry/global_spec.rb # spec/lib/gitlab/ci/config/entry/job_spec.rb # spec/lib/gitlab/ci/status/build/factory_spec.rb # spec/lib/gitlab/incoming_email_spec.rb
-
由 Douwe Maan 提交于
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
-
由 Douwe Maan 提交于
-
由 Douwe Maan 提交于
-
- 22 2月, 2017 1 次提交
-
-
由 Yorick Peterse 提交于
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.
-
- 14 2月, 2017 2 次提交
-
-
由 Lin Jen-Shin 提交于
-
由 Yorick Peterse 提交于
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.
-
- 07 2月, 2017 1 次提交
-
-
由 Douwe Maan 提交于
-
- 07 6月, 2016 1 次提交
-
-
由 Rémy Coutable 提交于
Signed-off-by: NRémy Coutable <remy@rymai.me>
-
- 16 2月, 2016 1 次提交
-
-
由 Robert Speicher 提交于
-
- 03 2月, 2016 1 次提交
-
-
由 Robert Speicher 提交于
Closes #12900
-
- 09 12月, 2015 1 次提交
-
-
由 Douwe Maan 提交于
-