Assembly: OptimaJet.Workflow.Migrator

Class MigrationInfo

OptimaJet.Workflow.Migrator.MigrationInfo

Represents a database migration and its associated SQL script.

public class MigrationInfo

Constructors

public MigrationInfo(string name, long migrationVersion, string sqlScript, string? productName = null, string? productVersion = null) #
Initializes a new instance of the MigrationInfo class.

Parameters

Name
Type
Description
name
String
The fully qualified name of the SQL migration script.
migrationVersion
Int64
The migration version.
sqlScript
String
The SQL migration script.
productName
String
The product name. or null if the product name is not specified.
productVersion
String
The product version in which the migration was introduced, or null if the product version is not specified.

Exceptions

Type
Description
ArgumentNullException
name or sqlScript is null.

Properties

public string Name { get; } #
The fully qualified name of the SQL migration script.
public long MigrationVersion { get; } #
The migration version.
public string? ProductName { get; } #
The product name. or null if the product name is not specified.
public string? ProductVersion { get; } #
The product version in which the migration was introduced. or null if the product version is not specified.
public string SqlScript { get; } #
The text of the SQL script.