# Class MigrationInfo OptimaJet.Workflow.Migrator.MigrationInfo Represents a database migration and its associated SQL script. Namespace: [OptimaJet.Workflow.Migrator](https://api.workflowengine.io/migrator/OptimaJet.Workflow.Migrator/) ```csharp 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](https://api.workflowengine.io/migrator/OptimaJet.Workflow.Migrator/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](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) if the product name is not specified. | | `productVersion` | `String` | The product version in which the migration was introduced, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) if the product version is not specified. | ### Exceptions | Type | Description | | --- | --- | | `ArgumentNullException` | `name` or `sqlScript` is [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/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](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) if the product name is not specified. `public string? ProductVersion { get; }` The product version in which the migration was introduced. or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) if the product version is not specified. `public string SqlScript { get; }` The text of the SQL script. [Previous MigrationExtensions](https://api.workflowengine.io/migrator/OptimaJet.Workflow.Migrator/MigrationExtensions/) [Next Migrator](https://api.workflowengine.io/migrator/OptimaJet.Workflow.Migrator/Migrator/)