Files
aliasvault/apps/server/Databases/AliasServerDb/Migrations/SqliteMigrations/20241223201909_IncludePostgresqlFixes.cs
2025-04-30 19:03:18 +02:00

56 lines
1.7 KiB
C#

// <auto-generated />
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AliasServerDb.Migrations.SqliteMigrations
{
/// <inheritdoc />
public partial class IncludePostgresqlFixes : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ServiceName",
table: "WorkerServiceStatuses",
type: "TEXT",
maxLength: 255,
nullable: false,
oldClrType: typeof(string),
oldType: "varchar",
oldMaxLength: 255);
migrationBuilder.AlterColumn<int>(
name: "EventType",
table: "AuthLogs",
type: "INTEGER",
nullable: false,
oldClrType: typeof(int),
oldType: "nvarchar(50)");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "ServiceName",
table: "WorkerServiceStatuses",
type: "varchar",
maxLength: 255,
nullable: false,
oldClrType: typeof(string),
oldType: "TEXT",
oldMaxLength: 255);
migrationBuilder.AlterColumn<int>(
name: "EventType",
table: "AuthLogs",
type: "nvarchar(50)",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER");
}
}
}