summaryrefslogtreecommitdiff
path: root/db/schema.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into 38542-application-control-panel-in-settings-pageMatija Čupić2018-06-061-3/+6
|\
| * Migrate jobs in object_storage_upload queueJan Provaznik2018-06-051-1/+1
| |
| * Merge branch 'master' into ↵Kamil Trzciński2018-06-051-3/+3
| |\ | | | | | | | | | | | | | | | 'backstage/gb/use-persisted-stages-to-improve-pipelines-table' # Conflicts: # db/schema.rb
| | * Merge branch 'master' into 'rd-44364-deprecate-support-for-dsa-keys'Douwe Maan2018-06-051-1/+3
| | |\ | | | | | | | | | | | | # Conflicts: # db/schema.rb
| | | * Merge branch '42751-rename-mr-maintainer-push' into 'master'Robert Speicher2018-06-051-1/+1
| | | |\ | | | | | | | | | | | | | | | | | | | | Rephrase Merge Request Maintainer Edit See merge request gitlab-org/gitlab-ce!19061
| | | | * Rephrase "maintainer" to more precise "members who can merge to the target ↵42751-rename-mr-maintainer-pushMark Chao2018-06-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | branch" "Maintainer" will be freed to be used for #42751
| | | * | Merge branch 'add-background-migrations-for-not-archived-traces' into 'master'Kamil Trzciński2018-06-051-1/+1
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add background migrations to archive legacy job traces Closes #46642 See merge request gitlab-org/gitlab-ce!19194
| | | | * | Add background migrations to arhive legacy tracesShinya Maeda2018-06-041-1/+1
| | | | | |
| | * | | | Add migration to disable the usage of DSA keysrd-44364-deprecate-support-for-dsa-keysRubén Dávila2018-06-041-2/+2
| | | |/ / | | |/| | | | | | | | | | | | | | | | | Additionally the current application setting is also updated to disable the usage of DSA keys.
| * | | | Merge branch 'master' into ↵backstage/gb/use-persisted-stages-to-improve-pipelines-tableGrzegorz Bizon2018-06-051-2/+18
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | 'backstage/gb/use-persisted-stages-to-improve-pipelines-table' Conflicts: app/models/ci/pipeline.rb
| | * | | Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-06-021-0/+13
| | |\ \ \ | | | |/ /
| | * | | Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-06-011-2/+3
| | |\ \ \ | | | | |/ | | | |/|
| | * | | Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-301-1/+17
| | |\ \ \
| | * \ \ \ Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-281-4/+4
| | |\ \ \ \
| | * \ \ \ \ Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-171-3/+4
| | |\ \ \ \ \
| | * \ \ \ \ \ Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-101-4/+5
| | |\ \ \ \ \ \
| | * \ \ \ \ \ \ Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-091-2/+2
| | |\ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-05-081-2/+84
| | |\ \ \ \ \ \ \ \
| | * | | | | | | | | Revert column name changeShinya Maeda2018-05-031-2/+2
| | | | | | | | | | |
| | * | | | | | | | | Change column name to iid_per_project. Add index to project_id and iidShinya Maeda2018-05-031-2/+3
| | | | | | | | | | |
| | * | | | | | | | | Add per-project pipeline idShinya Maeda2018-05-031-0/+1
| | | | | | | | | | |
| * | | | | | | | | | Make pipeline / stage position index not uniqueGrzegorz Bizon2018-05-311-1/+1
| | | | | | | | | | |
| * | | | | | | | | | Add a unique index to stages on pipeline / positionGrzegorz Bizon2018-05-301-1/+2
| | |_|_|_|_|_|/ / / | |/| | | | | | | |
* | | | | | | | | | Add deploy_strategy to ProjectAutoDevopsMatija Čupić2018-06-011-1/+2
| |_|_|_|_|_|_|_|/ |/| | | | | | | |
* | | | | | | | | 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>
* | | | | | | | | 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
| | | | | | | |
* | | | | | | | 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.
* | | | | | 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.
* | | | | 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 '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
|/ / /
* | | Add MakeRemoteMirrorsDisabledByDefault DB migrationAsh McKenzie2018-05-081-2/+2
| |/ |/|