18 lines
528 B
C#
18 lines
528 B
C#
|
// <copyright file="IDatabaseMigrator.cs" company="alveus.dev">
|
||
|
// Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License.
|
||
|
// </copyright>
|
||
|
|
||
|
namespace Astral.Core.Infrastructure;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Database migration process.
|
||
|
/// </summary>
|
||
|
public interface IDatabaseMigrator
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Run database migrations.
|
||
|
/// </summary>
|
||
|
/// <param name="migrationsPath">The directory where migrations are found.</param>
|
||
|
Task MigrateDatabaseAsync(string migrationsPath = "Migrations");
|
||
|
}
|