MigrationResult

Classes > Migration.Postgres > MigrationResult

Result of a schema migration operation.

public sealed record MigrationResult : IEquatable<MigrationResult>

Constructors

MigrationResult

public MigrationResult(bool Success, int TablesCreated, IReadOnlyList<string> Errors)

Result of a schema migration operation.

Parameter Type Description
Success Boolean Whether the migration completed without errors.
TablesCreated Int32 Number of tables successfully created or already existing.
Errors String> List of table names and error messages for any failures.

Properties

Success

public bool Success { get; init; }

Whether the migration completed without errors.

TablesCreated

public int TablesCreated { get; init; }

Number of tables successfully created or already existing.

Errors

public IReadOnlyList<string> Errors { get; init; }

List of table names and error messages for any failures.