summaryrefslogtreecommitdiff
path: root/db/migrate
Commit message (Collapse)AuthorAgeFilesLines
* Store & use ConvDev percentages returned by Version app35761-convdev-percJarka Kadlecova2017-08-071-0/+32
|
* Re-organise "issues" indexes for faster orderingreorganise-issues-indexes-for-sortingYorick Peterse2017-08-031-0/+43
| | | | | | | By adding various composite indexes we can reduce the time spent retrieving issue lists. Because of the way these indexes are built column wise we can also remove some standalone indexes, keeping the total number of indexes in check.
* Change project FK migration to skip existing FKsproject-foreign-keys-without-errorsYorick Peterse2017-08-021-8/+26
| | | | | | This changes the migration ProjectForeignKeysWithCascadingDeletes so that it does not add already existing foreign keys and indexes, making it easier to re-run the migration.
* Rename many path_with_namespace -> full_pathGabriel Mazetto2017-08-011-0/+1
|
* initShinya Maeda2017-07-282-0/+35
|
* Merge branch 'backport-ee-2456' into 'master'Robert Speicher2017-07-271-0/+15
|\ | | | | | | | | Skip OAuth authorization for trusted applications See merge request !13061
| * Backport gitlab-ee!2456Oswaldo Ferreira2017-07-271-0/+15
| |
* | add unique index for gpg_signatures#commit_shaAlexis Reigel2017-07-271-1/+1
| |
* | add unique indexes to gpg_keysAlexis Reigel2017-07-271-1/+2
| |
* | no more more :length due to mysql set_index hackAlexis Reigel2017-07-271-13/+0
| |
* | length constrain on the index, not on the columnAlexis Reigel2017-07-273-11/+20
| | | | | | | | | | we actually don't need a limit on the column itself for MySQL to work. we need to set a length on the index.
* | use db's on_delete instead of has_many :dependentAlexis Reigel2017-07-272-3/+3
| |
* | use text instead of string for db columnsAlexis Reigel2017-07-271-2/+2
| |
* | use ShaAttribute for gpg table columnsAlexis Reigel2017-07-273-4/+9
| |
* | merge migrations to 1 single create per tableAlexis Reigel2017-07-274-48/+18
| | | | | | | | | | | | | | | | also: * reorder table columns * no need for `add_concurrent_index` * no need for explicit index removal on `#down`
* | store gpg user name and email on the signatureAlexis Reigel2017-07-271-0/+11
| |
* | gpg signature model for gpg verification cachingAlexis Reigel2017-07-271-0/+29
| |
* | add primary keyid attribute to gpg keysAlexis Reigel2017-07-271-0/+17
| |
* | add gpg key modelAlexis Reigel2017-07-271-0/+13
|/
* Fix saving diffs that are not valid UTF-835539-can-t-create-a-merge-request-containing-a-binary-file-with-non-utf-8-charactersSean McGivern2017-07-261-0/+9
| | | | | | | | | | Previously, we used Psych, which would: 1. Check if a string was encoded as binary, and not ASCII-compatible. 2. Add the !binary tag in that case. 3. Convert to base64. We need to do the same thing, using a new column in place of the tag.
* Merge branch '29289-project-destroy-clean-up-after-failure' into 'master'Sean McGivern2017-07-261-0/+7
|\ | | | | | | | | | | | | Handle errors while a project is being deleted asynchronously. Closes #29289 See merge request !11088
| * Add specs for ProjectDestroyWorkerTiago Botelho2017-07-201-24/+0
| |
| * Handle errors while a project is being deleted asynchronously.Timothy Andrew2017-07-201-0/+31
| | | | | | | | | | | | | | | | | | | | 1. Rescue all errors that `Projects::DestroyService` might throw, to prevent the worker from leaving things in an inconsistent state 2. Unmark the project as `pending_delete` 3. Add a `delete_error` text column to `projects`, and save the error message in there, to be shown to the project masters/owners.
* | Add lower path index to redirect_routesmk-add-lower-path-index-to-redirect-routesMichael Kozono2017-07-251-0/+34
| |
* | Merge branch 'master' into backstage/gb/build-stage-id-ref-bg-migration-cleanupbackstage/gb/build-stage-id-ref-bg-migration-cleanupGrzegorz Bizon2017-07-192-0/+105
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (59 commits) Resolve "Clarify k8s service keys" Add Portuguese Brazil translations of Commits Page & Pipeline Charts Add Japanese Translation to i18n Update Prometheus gem to version that explicitly calls `munmap` Simplify width for dropdown-menu on mobile Update CHANGELOG.md for 9.3.7 Remove developer documentation about not describing symbols Incorporate Gitaly's Commits#between RPC Adapt to new Gitaly commit message format Remove transitions on nav link hover Provide option to trigger build only for official CE and EE repos in .com Fix queries duration sorting in Performance Bar Rename Project nav items Add structured logging for Rails processes Disable Rails logging in CI test environments Fix download artifacts button alignment Update avatar border to be opaque for better stacking Fixed typos Fix typos Fix external issue trackers redirect ... Conflicts: db/schema.rb
| * Move the `uploads/system` folder to `uploads/-/system`Bob Van Landuyt2017-07-181-0/+60
| | | | | | | | Without downtime, so we need the symlinks
| * Use batching to clear orphans in head_pipeline migrationbackstage/gb/add-index-and-foreign-key-to-merge-requestsGrzegorz Bizon2017-07-181-3/+12
| |
| * Nullify orphaned head_pipeline_ids in merge_requestsGrzegorz Bizon2017-07-181-0/+8
| |
| * Add a foreign key to `merge_requests.head_pipeline_id`Grzegorz Bizon2017-07-181-0/+28
| |
* | Remove migration dependency from stage_id migrationGrzegorz Bizon2017-07-181-4/+1
| |
* | Rename stage_id reference clean up migrationGrzegorz Bizon2017-07-181-1/+1
| |
* | Implement build stage_id reference migration clean upGrzegorz Bizon2017-07-181-0/+21
|/
* Fixes needed when GitLab sign-in is not enabledRobin Bobbitt2017-07-131-0/+15
| | | | | | | | | When sign-in is disabled: - skip password expiration checks - prevent password reset requests - don’t show Password tab in User Settings - don’t allow login with username/password for Git over HTTP requests - render 404 on requests to Profiles::PasswordsController
* Merge branch 'fix_migrations_in_the_future' into 'master'Douwe Maan2017-07-073-0/+14
|\ | | | | | | | | | | | | fix migrations in the future Closes #34832 See merge request !12719
| * Make wrong migrations idempotentfix_migrations_in_the_futureFelipe Artur2017-07-073-3/+11
| |
| * fix migrations in the futureFelipe Artur2017-07-073-0/+6
| |
* | Merge branch 'master' into '33929-allow-to-enable-perf-bar-for-a-group'Sean McGivern2017-07-074-0/+77
|\ \ | |/ | | | | # Conflicts: # db/schema.rb
| * Merge branch ↵Kamil Trzciński2017-07-072-0/+40
| |\ | | | | | | | | | | | | | | | | | | | | | | | | 'feature/intermediate/32568-adding-variables-to-pipelines-schedules' into 'master' Add variables to pipelines schedules Closes #32568 See merge request !12372
| | * Merge from master(Fix conflicts)Shinya Maeda2017-07-072-0/+38
| | |\
| | * \ merge from masterShinya Maeda2017-07-076-0/+323
| | |\ \
| | * | | Fix StaticAnlysysShinya Maeda2017-07-051-1/+1
| | | | |
| | * | | pipeline_schedule_variables model/dbShinya Maeda2017-07-051-1/+1
| | | | |
| | * | | Fix StaticAnlysysShinya Maeda2017-07-051-1/+1
| | | | |
| | * | | pipeline_schedule_variables model/dbShinya Maeda2017-07-052-0/+40
| | | | |
| * | | | Native group milestonesFelipe Artur2017-07-072-0/+37
| | |_|/ | |/| |
* | | | Merge branch 'master' into 33929-allow-to-enable-perf-bar-for-a-groupSean McGivern2017-07-076-0/+315
|\ \ \ \ | |/ / /
| * | | Basic BE changeShinya Maeda2017-07-072-0/+38
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix static-snalysis Move the precedence of group secure variable before project secure variable. Allow project_id to be null. Separate Ci::VariableProject and Ci::VariableGroup Add the forgotton files Add migration file to update type of ci_variables Fix form_for fpr VariableProject Fix test Change the table structure according to the yorik advice Add necessary migration files. Remove unnecessary migration spec. Revert safe_model_attributes.yml Fix models Fix spec Avoid self.variable. Use becomes for correct routing. Use unique index on group_id and key Add null: false for t.timestamps Fix schema version Rename VariableProject and VariableGroup to ProjectVariable and GroupVariable Rename the rest of them Add the rest of files Basic BE change Fix static-snalysis Move the precedence of group secure variable before project secure variable. Allow project_id to be null. Separate Ci::VariableProject and Ci::VariableGroup Add the forgotton files Add migration file to update type of ci_variables Fix form_for fpr VariableProject Fix test Change the table structure according to the yorik advice Add necessary migration files. Remove unnecessary migration spec. Revert safe_model_attributes.yml Fix models Fix spec Avoid self.variable. Use becomes for correct routing. Use unique index on group_id and key Add null: false for t.timestamps Fix schema version Rename VariableProject and VariableGroup to ProjectVariable and GroupVariable Rename the rest of them Add the rest of files Implement CURD Rename codes related to VariableGroup and VariableProject FE part Remove unneccesary changes Make Fe code up-to-date Add protected flag to migration file Protected group variables essential package Update schema Improve doc Fix logic and spec for models Fix logic and spec for controllers Fix logic and spec for views(pre feature) Add feature spec Fixed bugs. placeholder. reveal button. doc. Add changelog Remove unnecessary comment godfat nice catches Improve secret_variables_for arctecture Fix spec Fix StaticAnlysys & path_regex spec Revert "Improve secret_variables_for arctecture" This reverts commit c3216ca212322ecf6ca534cb12ce75811a4e77f1. Use ayufan suggestion for secret_variables_for Use find instead of find_by Fix spec message for variable is invalid Fix spec remove variable.group_id = group.id godffat spec nitpicks Use include Gitlab::Routing.url_helpers for presenter spec
| * | Add table for merge request commitsSean McGivern2017-07-061-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an ID-less table with just three columns: an association to the merge request diff the commit belongs to, the relative order of the commit within the merge request diff, and the commit SHA itself. Previously we stored much more information about the commits, so that we could display them even when they were deleted from the repo. Since 8.0, we ensure that those commits are kept around for as long as the target repo itself is, so we don't need to duplicate that data in the database.
| * | Add many foreign keys to the projects tableYorick Peterse2017-07-063-0/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the need for relying on Rails' "dependent" option for data removal, which is _incredibly_ slow (even when using :delete_all) when deleting large amounts of data. This also ensures data consistency is enforced on DB level and not on application level (something Rails is really bad at). This commit also includes various migrations to add foreign keys to tables that eventually point to "projects" to ensure no rows get orphaned upon removing a project.
* | | Allow to enable the Performance Bar for a group from the admin areaRémy Coutable2017-07-061-0/+9
|/ / | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>