mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-20 23:52:31 -04:00
56 lines
1.7 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|