summaryrefslogtreecommitdiff
path: root/db
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'gitaly-refs' into 'master'Robert Speicher2017-04-051-3/+2
|\ | | | | | | | | Implement Gitaly refs client See merge request !9291
| * Incorporate Gitaly client for refs serviceAlejandro Rodríguez2017-04-041-3/+2
| |
* | Added mock deployment and monitoring service with environments fixturesKamil Trzciński2017-04-052-0/+70
|/
* Merge branch 'remove_index_for_users.current_sign_in_at' into 'master' Yorick Peterse2017-04-042-2/+26
|\ | | | | | | | | | | | | Remove index for users.current sign in at Closes #29523 See merge request !10401
| * Remove index for users.current sign in atblackst0ne2017-04-042-2/+26
| |
* | Ensure we generate unique usernames otherwise validations failrc/fix-transient-failures-following-no-ffakerRémy Coutable2017-04-041-2/+2
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Ensure the AbuseReport fixtures create unique reported usersRémy Coutable2017-04-031-1/+1
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Don't use FFaker in factories, use sequences insteadRémy Coutable2017-04-031-15/+17
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Fix the AbuseReport seederRémy Coutable2017-04-031-3/+23
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Introduce "polling_interval_multiplier" as application settingAdam Niedzielski2017-04-032-1/+35
| | | | | Implement module for setting "Poll-Interval" response header. Return 429 in ETag caching middleware when polling is disabled.
* Fix production admin fixture to use the new `Users::CreateService`Rémy Coutable2017-03-301-3/+5
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Create metadata when creating system notesJarka Kadlecova2017-03-282-4/+8
|
* Add system_note_metadata modelJarka Kadlecova2017-03-282-0/+28
|
* Merge branch 'sh-bring-back-option-to-be-notified-of-own-activity' into ↵Robert Speicher2017-03-272-0/+11
|\ | | | | | | | | | | | | | | 'master' Bring back option to be notified of own activity See merge request !10032
| * Simplify migrationStan Hu2017-03-241-5/+1
| |
| * Use default_value_for to set notified_of_own_activity instead of using a DB ↵Stan Hu2017-03-242-21/+1
| | | | | | | | migration
| * Merge branch 'master' into sh-bring-back-option-to-be-notified-of-own-activityStan Hu2017-03-245-32/+58
| |\
| * \ Merge branch 'master' into sh-bring-back-option-to-be-notified-of-own-activityStan Hu2017-03-209-102/+280
| |\ \
| * \ \ Merge branch 'master' into sh-bring-back-option-to-be-notified-of-own-activityStan Hu2017-03-172-0/+19
| |\ \ \
| * | | | Add separate post migration to change default of notified_of_own_activityStan Hu2017-03-173-2/+22
| | | | |
| * | | | Remove original migration and re-add required migration under a later timestampsh-bring-back-option-to-be-notified-of-own-activityStan Hu2017-03-162-3/+3
| | | | |
| * | | | Revert "Merge branch '8836-mr-revert' into 'master'Stan Hu2017-03-162-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 68e40bd49fde7b790bb31b9ac85a249bedd817d2, reversing changes made to 2d1f823b4c8b60cee525384cb52e547d2be8925a.
* | | | | Do nothing if ci_builds.job_id isn't thereLin Jen-Shin2017-03-241-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is really weird. I think we did get the same issue while migrating on GitLab.com. We fixed this by adding job_id to ci_builds table manually, and then run the migrations again. However I think we didn't hit into this on staging, which should somehow be a production clone. At any rate, I guess we could check if the column exists in the migration. If the column is not there, there's no point to remove that column anyway. Closes #29976
* | | | Fix routes index migrationSean McGivern2017-03-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For example: index_exists?(:routes, name: INDEX_NAME) # => false index_exists?(:routes, :path, name: INDEX_NAME) # => true
* | | | Add LIKE index for routes.pathYorick Peterse2017-03-212-4/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nested groups support uses queries along the lines of `path LIKE 'X/%'`. For these queries to use an index on PostgreSQL we need to use either the varchar_pattern_ops or text_pattern_ops operator class. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/29554
* | | | Merge branch 'dz-improve-rename-projects-migration' into 'master' Yorick Peterse2017-03-211-30/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve rename projects migration Closes #29556 See merge request !10009
| * | | | Improve rename projects migrationDmitriy Zaporozhets2017-03-201-30/+1
| |/ / / | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Merge branch 'perf/add-index-to-user-ghost' into 'master' Douwe Maan2017-03-212-3/+28
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | add an index to the ghost column See merge request !9910
| * | | | add an index to the ghost columnhttp://jneen.net/2017-03-202-3/+28
| | |_|/ | |/| |
* | | | Merge branch '29671-remove-useless-options' into 'master' Douwe Maan2017-03-211-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Remove useless options from db/fixtures/development/17_cycle_analytics.rb Closes #29671 See merge request !10086
| * | | Remove useless options from db/fixtures/development/17_cycle_analytics.rbRémy Coutable2017-03-201-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | Merge branch 'issue_27212' into 'master' Sean McGivern2017-03-202-1/+9
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Add closed_at field to issues Closes #27212 See merge request !9977
| * | | Add closed_at field to issuesFelipe Artur2017-03-172-1/+9
| | |/ | |/|
* | | All CI offline migrationsKamil Trzciński2017-03-178-102/+272
|/ /
* | Add ability to disable Merge Request URL on pushAlex Sanford2017-03-172-0/+19
|/
* Fix statements timeout in manual actions migrationfix/gb/fix-timeouts-in-manual-actions-migrationGrzegorz Bizon2017-03-161-0/+4
|
* Revert the AddNotifiedOfOwnActivityToUsers migrationrs-revert-notified-of-own-activity-migrationRobert Speicher2017-03-152-1/+25
|
* Revert "Merge branch 'option-to-be-notified-of-own-activity' into 'master'Stan Hu2017-03-152-15/+0
| | | | | This reverts commit 5e9666880376b3f53edb95cba77b5642d3cc1810, reversing changes made to b35378a938e22f745b6c6ea32b53cb50f9b6c627.
* Merge branch 'test-db-rollback' into 'master' Kamil Trzciński2017-03-1510-9/+20
|\ | | | | | | | | | | | | Add a test which would rollback db and migrate again Closes #29106 See merge request !9908
| * Use `remove_foreign_key :timelogs, name: '...'`Lin Jen-Shin2017-03-141-9/+2
| | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9908#note_25324225
| * Drop the index only for postgresql, becauseLin Jen-Shin2017-03-141-1/+2
| | | | | | | | | | | | mysql cannot simply drop the index without dropping the corresponding foreign key, and we certainly don't want to drop the foreign key here.
| * Disable rubocop for down methodLin Jen-Shin2017-03-141-0/+1
| |
| * Fix for postgresqlLin Jen-Shin2017-03-144-4/+12
| |
| * Add a test which would rollback db and migrate againLin Jen-Shin2017-03-148-7/+19
| | | | | | | | Closes #29106
* | Fixing two migrations that could not be rolled backfix-migration-rc1-rollbackDJ Mountney2017-03-142-2/+6
| | | | | | | | when rolling back from 9-0-stable to 8.17.3
* | [Issue Sorting] Improve migrationValery Sizov2017-03-141-4/+3
| |
* | Added migration to reset existing relative_position for issuesValery Sizov2017-03-141-0/+18
| |
* | Merge branch 'dz-blacklist--names' into 'master' Douwe Maan2017-03-132-1/+102
|\ \ | | | | | | | | | | | | | | | | | | Blacklist nested groups and project names that can cause ambiguous routing for HA Closes #29324 See merge request !9898
| * | Reserve few project and nested group pathsDmitriy Zaporozhets2017-03-132-1/+102
| |/ | | | | | | | | | | | | That have wildcard routes associated and not reserved yet: artifacts, graphs, badges and refs Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Trigger refreshing of permissions in a migrationrefresh-permissions-recent-usersYorick Peterse2017-03-131-0/+19
|/ | | | | | This migration resets `users.authorized_projects_populated` (in batches) so that active users' permissions are refreshed on the next request. This ensures that their permissions are properly stored.