mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 22:29:24 +02:00
37 lines
1 KiB
C#
37 lines
1 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace MTWireGuard.Application.Migrations
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class FixServerNullables : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterColumn<int>(
|
|||
|
name: "IPPoolId",
|
|||
|
table: "Servers",
|
|||
|
type: "INTEGER",
|
|||
|
nullable: true,
|
|||
|
oldClrType: typeof(int),
|
|||
|
oldType: "INTEGER");
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterColumn<int>(
|
|||
|
name: "IPPoolId",
|
|||
|
table: "Servers",
|
|||
|
type: "INTEGER",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
oldClrType: typeof(int),
|
|||
|
oldType: "INTEGER",
|
|||
|
oldNullable: true);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|