Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
4419289b
Commit
4419289b
authored
Jun 21, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migration specs that can not run within transaction
parent
3fd4a37d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
5 deletions
+7
-5
db/post_migrate/20170526185921_migrate_build_stage_reference.rb
...t_migrate/20170526185921_migrate_build_stage_reference.rb
+2
-0
spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base_spec.rb
...se/rename_reserved_paths_migration/v1/rename_base_spec.rb
+1
-1
spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects_spec.rb
...ename_reserved_paths_migration/v1/rename_projects_spec.rb
+1
-1
spec/lib/gitlab/database/rename_reserved_paths_migration/v1_spec.rb
...itlab/database/rename_reserved_paths_migration/v1_spec.rb
+1
-1
spec/migrations/add_head_pipeline_for_each_merge_request_spec.rb
...grations/add_head_pipeline_for_each_merge_request_spec.rb
+1
-1
spec/migrations/migrate_user_activities_to_users_last_activity_on_spec.rb
...migrate_user_activities_to_users_last_activity_on_spec.rb
+1
-1
No files found.
db/post_migrate/20170526185921_migrate_build_stage_reference.rb
View file @
4419289b
...
...
@@ -3,6 +3,8 @@ class MigrateBuildStageReference < ActiveRecord::Migration
DOWNTIME
=
false
disable_ddl_transaction!
def
up
disable_statement_timeout
...
...
spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base_spec.rb
View file @
4419289b
require
'spec_helper'
describe
Gitlab
::
Database
::
RenameReservedPathsMigration
::
V1
::
RenameBase
do
describe
Gitlab
::
Database
::
RenameReservedPathsMigration
::
V1
::
RenameBase
,
:truncate
do
let
(
:migration
)
{
FakeRenameReservedPathMigrationV1
.
new
}
let
(
:subject
)
{
described_class
.
new
([
'the-path'
],
migration
)
}
...
...
spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects_spec.rb
View file @
4419289b
require
'spec_helper'
describe
Gitlab
::
Database
::
RenameReservedPathsMigration
::
V1
::
RenameProjects
do
describe
Gitlab
::
Database
::
RenameReservedPathsMigration
::
V1
::
RenameProjects
,
:truncate
do
let
(
:migration
)
{
FakeRenameReservedPathMigrationV1
.
new
}
let
(
:subject
)
{
described_class
.
new
([
'the-path'
],
migration
)
}
...
...
spec/lib/gitlab/database/rename_reserved_paths_migration/v1_spec.rb
View file @
4419289b
...
...
@@ -13,7 +13,7 @@ shared_examples 'renames child namespaces' do |type|
end
end
describe
Gitlab
::
Database
::
RenameReservedPathsMigration
::
V1
do
describe
Gitlab
::
Database
::
RenameReservedPathsMigration
::
V1
,
:truncate
do
let
(
:subject
)
{
FakeRenameReservedPathMigrationV1
.
new
}
before
do
...
...
spec/migrations/add_head_pipeline_for_each_merge_request_spec.rb
View file @
4419289b
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20170508170547_add_head_pipeline_for_each_merge_request.rb'
)
describe
AddHeadPipelineForEachMergeRequest
do
describe
AddHeadPipelineForEachMergeRequest
,
:truncate
do
let
(
:migration
)
{
described_class
.
new
}
let!
(
:project
)
{
create
(
:empty_project
)
}
...
...
spec/migrations/migrate_user_activities_to_users_last_activity_on_spec.rb
View file @
4419289b
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20170324160416_migrate_user_activities_to_users_last_activity_on.rb'
)
describe
MigrateUserActivitiesToUsersLastActivityOn
,
:redis
do
describe
MigrateUserActivitiesToUsersLastActivityOn
,
:redis
,
:truncate
do
let
(
:migration
)
{
described_class
.
new
}
let!
(
:user_active_1
)
{
create
(
:user
)
}
let!
(
:user_active_2
)
{
create
(
:user
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment