summaryrefslogtreecommitdiff
path: root/db/schema.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-06-021-0/+13
|\
| * Merge branch '46487-add-support-for-jupyter-in-gitlab-via-kubernetes' into ↵Dmitriy Zaporozhets2018-06-011-0/+13
| |\ | | | | | | | | | | | | | | | | | | | | | | | | 'master' Resolve "Add support for Jupyter in GitLab via Kubernetes" Closes #46487 See merge request gitlab-org/gitlab-ce!19019
| | * Fix schema.rb46487-add-support-for-jupyter-in-gitlab-via-kubernetesDmitriy Zaporozhets2018-05-311-1/+1
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| | * Fix column order for jupyter table in schema.rbDmitriy Zaporozhets2018-05-311-1/+1
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| | * Improve jupyter app db migrationsDmitriy Zaporozhets2018-05-311-0/+2
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| | * Merge remote-tracking branch 'origin/master' into ↵Dmitriy Zaporozhets2018-05-301-1/+18
| | |\ | | | | | | | | | | | | 46487-add-support-for-jupyter-in-gitlab-via-kubernetes
| | * | Rename clusters_applications_jupyters to uncountableDmitriy Zaporozhets2018-05-301-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| | * | Revert changes to db/schemaDmitriy Zaporozhets2018-05-301-26/+24
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| | * | Add oauth reference to jupyter cluster appDmitriy Zaporozhets2018-05-251-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| | * | Add support for Jupyter in GitLab via KubernetesDmitriy Zaporozhets2018-05-251-24/+36
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-06-011-2/+3
|\ \ \ \ | |/ / /
| * | | Export assigned issues in iCalendar feedImre Farkas2018-05-311-2/+2
| | |/ | |/|
| * | Merge branch 'blackst0ne-squash-and-merge-in-gitlab-core-ce' into 'master'Phil Hughes2018-05-301-0/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Resolve "Squash and merge in GitLab Core (CE)" Closes #34591 See merge request gitlab-org/gitlab-ce!18956
| | * | Add 'squash and rebase' feature to CEblackst0ne-squash-and-merge-in-gitlab-core-ceblackst0ne2018-05-291-0/+1
| | | |
* | | | Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-301-1/+17
|\ \ \ \ | |/ / /
| * | | Adds migration to ensure all remote mirror columns get createdTiago Botelho2018-05-291-1/+1
| | | |
| * | | Added partial index for merge requestsYorick Peterse2018-05-281-1/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This index is added on `(target_project_id, iid)` and has a `WHERE state = 'opened'` condition. Using this index we can drastically improve the performance of the query used to count the total number of merge requests in a group. Without this index the query would eventually perform the following: -> Index Scan using index_merge_requests_on_target_project_id_and_iid on merge_requests (cost=0.43..4.89 rows=7 width=4) (actual time=0.058..0.353 rows=6 loops=228) Index Cond: (target_project_id = projects.id) Filter: ((state)::text = 'opened'::text) Rows Removed by Filter: 141 Buffers: shared hit=34351 dirtied=1 Out of the ~180 milliseconds the entire query would take, around 170 milliseconds was spent in just this segment. With the index in place, the above segment is turned into the following: -> Index Only Scan using yorick_test on merge_requests (cost=0.42..0.55 rows=7 width=4) (actual time=0.004..0.010 rows=6 loops=228) Index Cond: (target_project_id = projects.id) Heap Fetches: 419 Buffers: shared hit=1381 The index also reduces the total query time to roughly 10 milliseconds.
| * | Persist truncated note diffs on a new table45190-create-notes-diff-filesOswaldo Ferreira2018-05-241-0/+15
| |/ | | | | | | | | We request Gitaly in a N+1 manner to build discussion diffs. Once the diffs are from different revisions, it's hard to make a single request to the service in order to build the whole response. With this change we solve this problem and simplify a lot fetching this piece of info.
* | Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-281-4/+4
|\ \ | |/
| * Increase text limit for GPG keys (mysql only).ab-46530-mediumtext-for-gpg-keysAndreas Brandl2018-05-221-1/+1
| | | | | | | | Closes #46530.
| * Add NOT NULL constraints to project_authorizations.Andreas Brandl2018-05-211-4/+4
| | | | | | | | Closes #32258.
* | Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-171-3/+4
|\ \ | |/
| * Add a unique and not null constraint on the project_features.project_id columnStan Hu2018-05-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit has two migrations: 1. The first prunes duplicate rows in the project_features table and leaves the row with the highest ID. Since the behavior was indeterministic before and depended on which row the database decided to use, this change at least makes the permissions consistent. For example, in some cases, the Wiki may have been disabled but enabled in another entry. 2. The second adds a non-null constraint on the project_features.project_id column. Closes #37882 Fixes a significant part of gitlab-com/migration#408. We found that we were overcounting Wikis because of these duplicates. On GitLab.com, there are 56 rows with duplicate entries by project_id, and 16,661 rows with NULL project_id values.
| * Add index on runner_type for ci_runners46010-add-index-to-runner-typeDylan Griffith2018-05-151-1/+2
| | | | | | | | | | We use this to filter runner and will use this increasingly in future instead of is_shared so it should be indexed
* | Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-101-4/+5
|\ \ | |/
| * Merge branch 'master' into 'fix-project-mirror-data-schema'Douwe Maan2018-05-091-2/+3
| |\ | | | | | | | | | # Conflicts: # db/schema.rb
| | * Merge branch 'fix/gb/add-missing-foreign-key-to-database-schema' into 'master'Kamil Trzciński2018-05-091-0/+1
| | |\ | | | | | | | | | | | | | | | | Add missing pipeline build foreign key to the schema See merge request gitlab-org/gitlab-ce!18846
| | | * Add missing pipeline build foreign key to the schemaGrzegorz Bizon2018-05-091-0/+1
| | | |
| | * | Add DB constraint ci_runners.runner_type not nullDylan Griffith2018-05-091-2/+2
| | |/
| * | Adds unique constraint to ProjectMirrorData project_id indexTiago Botelho2018-05-081-2/+2
| | |
| * | Adds not null constraint to ProjectMirrorData's foreign_key project_idTiago Botelho2018-05-081-2/+2
| |/
* | Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-091-2/+2
|\ \ | |/
| * Add MakeRemoteMirrorsDisabledByDefault DB migrationAsh McKenzie2018-05-081-2/+2
| |
* | Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-081-2/+84
|\ \ | |/
| * Merge branch '42099-port-push-mirroring-to-ce-ce-port-v-2' into 'master'Douwe Maan2018-05-071-0/+24
| |\ | | | | | | | | | | | | | | | | | | CE backport of Backports Push Mirrors to CE Closes #42099 See merge request gitlab-org/gitlab-ce!18715
| | * Adds remote mirror table migrationTiago Botelho2018-05-071-3/+27
| | |
| | * Backports every CE related change from ee-5484 to CETiago Botelho2018-05-071-3/+3
| | |
| * | Merge branch 'live-trace-v2' into 'master'Grzegorz Bizon2018-05-071-0/+10
| |\ \ | | |/ | |/| | | | | | | | | | | | | New CI Job live-trace architecture (v2) Closes #44935 See merge request gitlab-org/gitlab-ce!18169
| | * Merge branch 'master' into live-trace-v2Shinya Maeda2018-05-071-1/+49
| | |\
| | * \ Merge branch 'master' into live-trace-v2Shinya Maeda2018-05-031-0/+2
| | |\ \
| | * | | Fix schema versionShinya Maeda2018-04-271-1/+1
| | | | |
| | * | | Refactoring ci_job_trace to ci_build_traceShinya Maeda2018-04-261-11/+11
| | | | |
| | * | | Merge branch 'master' into live-trace-v2Shinya Maeda2018-04-261-1/+9
| | |\ \ \
| | * | | | Chnage raw_data type to binary from textShinya Maeda2018-04-231-1/+1
| | | | | |
| | * | | | Merge branch 'master' into live-trace-v2Shinya Maeda2018-04-231-2/+5
| | |\ \ \ \
| | * \ \ \ \ Merge branch 'master' into live-trace-v2Shinya Maeda2018-04-201-1/+3
| | |\ \ \ \ \
| | * \ \ \ \ \ Merge branch 'master' into live-trace-v2Shinya Maeda2018-04-171-0/+23
| | |\ \ \ \ \ \
| | * | | | | | | Add rake task and timestamped migration file for mysql raw_data MIDIUMTEXTShinya Maeda2018-04-061-1/+1
| | | | | | | | |
| | * | | | | | | Merge branch 'master' into live-trace-v2Shinya Maeda2018-04-061-1/+3
| | |\ \ \ \ \ \ \
| | * | | | | | | | Fix migration file and schemaShinya Maeda2018-04-051-12/+2
| | | | | | | | | |