Files

51 lines
1.3 KiB
C#
Raw Permalink Normal View History

2024-01-28 18:23:33 +06:00
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Content.Server.Database.Migrations.Postgres
{
/// <inheritdoc />
public partial class UnFuck : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "user_id",
table: "server_role_ban");
migrationBuilder.DropColumn(
name: "user_id",
table: "server_ban");
migrationBuilder.DropColumn(
name: "body_type",
table: "profile");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "user_id",
table: "server_role_ban",
type: "uuid",
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "user_id",
table: "server_ban",
type: "uuid",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "body_type",
table: "profile",
type: "text",
nullable: false,
defaultValue: "");
}
}
}