using System.Reflection; using FluentMigrator.Infrastructure; namespace Nop.Data.Migrations; /// /// Represents a migration manager /// public partial interface IMigrationManager { /// /// Executes an Up for all found unapplied migrations /// /// Assembly to find migrations /// Type of migration process /// Commit only version information void ApplyUpMigrations(Assembly assembly, MigrationProcessType migrationProcessType = MigrationProcessType.Installation, bool commitVersionOnly = false); /// /// Executes an Up for schema unapplied migrations /// /// Assembly to find migrations void ApplyUpSchemaMigrations(Assembly assembly); /// /// Executes a Down for all found (and applied) migrations /// /// Assembly to find the migration void ApplyDownMigrations(Assembly assembly); /// /// Executes down expressions for the passed migration /// /// Migration to rollback void ApplyDownMigration(IMigrationInfo migration); /// /// Executes up expressions for the passed migration /// /// Migration to apply /// Commit only version information void ApplyUpMigration(IMigrationInfo migration, bool commitVersionOnly = false); }