Project

General

Profile

Feature #29914 » 0009-Fix-ArgumentError-wrong-number-of-arguments-given-1-.patch

Marius BĂLTEANU, 2021-03-30 18:41

View differences:

lib/redmine/plugin.rb
else
migrations
end
Migrator.new(:up, selected_migrations, target_version).migrate
Migrator.new(:up, selected_migrations, schema_migration, target_version).migrate
end
def down(target_version = nil)
......
else
migrations
end
Migrator.new(:down, selected_migrations, target_version).migrate
Migrator.new(:down, selected_migrations, schema_migration, target_version).migrate
end
def run(direction, target_version)
Migrator.new(direction, migrations, target_version).run
Migrator.new(direction, migrations, schema_migration, target_version).run
end
def open
Migrator.new(:up, migrations, nil)
Migrator.new(:up, migrations, schema_migration)
end
end
......
self.current_plugin = plugin
return if current_version(plugin) == version
MigrationContext.new(plugin.migration_directory).migrate(version)
MigrationContext.new(plugin.migration_directory, ::ActiveRecord::Base.connection.schema_migration).migrate(version)
end
def get_all_versions(plugin = current_plugin)
(3-3/21)