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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
17c48435
Commit
17c48435
authored
Feb 27, 2018
by
Micaël Bergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rework the migration to use the EE ones
parent
c94a6a07
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
21 deletions
+15
-21
db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb
db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb
+0
-0
db/migrate/20170825015534_add_file_store_to_lfs_objects.rb
db/migrate/20170825015534_add_file_store_to_lfs_objects.rb
+3
-11
db/migrate/20170918072949_add_file_store_job_artifacts.rb
db/migrate/20170918072949_add_file_store_job_artifacts.rb
+10
-0
db/migrate/20171214144320_add_store_column_to_uploads.rb
db/migrate/20171214144320_add_store_column_to_uploads.rb
+2
-10
No files found.
ee/
db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb
→
db/migrate/20170601163708_add_artifacts_store_to_ci_build.rb
View file @
17c48435
File moved
ee/
db/migrate/20170825015534_add_file_store_to_lfs_objects.rb
→
db/migrate/20170825015534_add_file_store_to_lfs_objects.rb
View file @
17c48435
...
@@ -23,17 +23,9 @@ class AddFileStoreToLfsObjects < ActiveRecord::Migration
...
@@ -23,17 +23,9 @@ class AddFileStoreToLfsObjects < ActiveRecord::Migration
#
#
# To disable transactions uncomment the following line and remove these
# To disable transactions uncomment the following line and remove these
# comments:
# comments:
disable_ddl_transaction!
#
disable_ddl_transaction!
def
up
def
change
unless
column_exists?
(
:lfs_objects
,
:file_store
)
add_column
(
:lfs_objects
,
:file_store
,
:integer
)
add_column
(
:lfs_objects
,
:file_store
,
:integer
)
end
end
end
def
down
if
column_exists?
(
:lfs_objects
,
:file_store
)
remove_column
(
:lfs_objects
,
:file_store
)
end
end
end
end
ee/
db/migrate/20170918072949_add_file_store_job_artifacts.rb
→
db/migrate/20170918072949_add_file_store_job_artifacts.rb
View file @
17c48435
...
@@ -4,15 +4,7 @@ class AddFileStoreJobArtifacts < ActiveRecord::Migration
...
@@ -4,15 +4,7 @@ class AddFileStoreJobArtifacts < ActiveRecord::Migration
disable_ddl_transaction!
disable_ddl_transaction!
DOWNTIME
=
false
DOWNTIME
=
false
def
up
def
change
unless
column_exists?
(
:ci_job_artifacts
,
:file_store
)
add_column
(
:ci_job_artifacts
,
:file_store
,
:integer
)
add_column
(
:ci_job_artifacts
,
:file_store
,
:integer
)
end
end
end
def
down
if
column_exists?
(
:ci_job_artifacts
,
:file_store
)
remove_column
(
:ci_job_artifacts
,
:file_store
)
end
end
end
end
ee/
db/migrate/20171214144320_add_store_column_to_uploads.rb
→
db/migrate/20171214144320_add_store_column_to_uploads.rb
View file @
17c48435
...
@@ -6,15 +6,7 @@ class AddStoreColumnToUploads < ActiveRecord::Migration
...
@@ -6,15 +6,7 @@ class AddStoreColumnToUploads < ActiveRecord::Migration
DOWNTIME
=
false
DOWNTIME
=
false
def
up
def
change
unless
column
.
exists?
(
:uploads
,
:store
)
add_column
(
:uploads
,
:store
,
:integer
)
add_column
(
:uploads
,
:store
,
:integer
)
end
end
end
def
down
if
column
.
exists?
(
:uploads
,
:store
)
remove_column
(
:uploads
,
:store
)
end
end
end
end
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