payloadLifespan/payloadLifetime and other name variants unified to Time To Live naming.

This commit is contained in:
mc
2025-07-05 17:07:53 +02:00
parent 85c462a614
commit a44912ac87
25 changed files with 496 additions and 25 deletions
@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MessengerApi.Db.Sql.Migrations
{
/// <inheritdoc />
public partial class RenameTtlColumnName : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "LifespanInSeconds",
table: "Messages",
newName: "TimeToLiveInSeconds");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "TimeToLiveInSeconds",
table: "Messages",
newName: "LifespanInSeconds");
}
}
}