Commit 17c48435 authored by Micaël Bergeron's avatar Micaël Bergeron

rework the migration to use the EE ones

parent c94a6a07
...@@ -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
...@@ -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
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment