mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-11-13 18:08:23 -05:00
41 lines
1.2 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|