1
0
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-11-13 18:08:23 -05:00
MyMcRealms/Minecraft-Realms-Emulator/Migrations/20240218160304_Connections_Id.cs
2024-04-20 09:20:30 +02:00

41 lines
1.2 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
{
/// <inheritdoc />
public partial class Connections_Id : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Id",
table: "Connections",
type: "integer",
nullable: false,
defaultValue: 0)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
migrationBuilder.AddPrimaryKey(
name: "PK_Connections",
table: "Connections",
column: "Id");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropPrimaryKey(
name: "PK_Connections",
table: "Connections");
migrationBuilder.DropColumn(
name: "Id",
table: "Connections");
}
}
}