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
#
# To disable transactions uncomment the following line and remove these
# comments:
disable_ddl_transaction!
# disable_ddl_transaction!
def up
unless column_exists?(:lfs_objects, :file_store)
def change
add_column(:lfs_objects, :file_store, :integer)
end
end
def down
if column_exists?(:lfs_objects, :file_store)
remove_column(:lfs_objects, :file_store)
end
end
end
......@@ -4,15 +4,7 @@ class AddFileStoreJobArtifacts < ActiveRecord::Migration
disable_ddl_transaction!
DOWNTIME = false
def up
unless column_exists?(:ci_job_artifacts, :file_store)
def change
add_column(:ci_job_artifacts, :file_store, :integer)
end
end
def down
if column_exists?(:ci_job_artifacts, :file_store)
remove_column(:ci_job_artifacts, :file_store)
end
end
end
......@@ -6,15 +6,7 @@ class AddStoreColumnToUploads < ActiveRecord::Migration
DOWNTIME = false
def up
unless column.exists?(:uploads, :store)
def change
add_column(:uploads, :store, :integer)
end
end
def down
if column.exists?(:uploads, :store)
remove_column(:uploads, :store)
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