2020-05-01 20:28:24 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
|
|
|
require "houdini_upgrade/engine"
|
|
|
|
|
|
|
|
module HoudiniUpgrade
|
2020-05-04 21:27:37 +00:00
|
|
|
require 'houdini_upgrade/table_to_migrate'
|
|
|
|
UPLOADERS_TO_MIGRATE = [
|
|
|
|
TableToMigrate.new(:nonprofits, [:main_image,
|
|
|
|
:second_image,
|
|
|
|
:third_image,
|
|
|
|
:background_image,
|
|
|
|
:logo]),
|
|
|
|
TableToMigrate.new(:campaigns, [
|
2020-05-05 16:45:38 +00:00
|
|
|
:main_image,
|
2020-05-04 21:27:37 +00:00
|
|
|
:background_image,
|
2020-05-05 16:45:38 +00:00
|
|
|
:banner_image
|
2020-05-04 21:27:37 +00:00
|
|
|
]),
|
|
|
|
TableToMigrate.new(:events, [
|
|
|
|
:main_image,
|
|
|
|
:background_image
|
|
|
|
]),
|
|
|
|
TableToMigrate.new(:image_attachments, [
|
|
|
|
:file
|
|
|
|
]),
|
|
|
|
TableToMigrate.new(:profiles, [
|
|
|
|
:picture
|
|
|
|
])
|
|
|
|
]
|
2020-05-01 20:28:24 +00:00
|
|
|
end
|