Server ban exemption system (#15076)
This commit is contained in:
committed by
GitHub
parent
e037d12899
commit
c8e90e561b
@@ -0,0 +1,34 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Content.Server.Database.Migrations.Postgres
|
||||
{
|
||||
public partial class ProfileTraitIndexUnique : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_trait_profile_id",
|
||||
table: "trait");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_trait_profile_id_trait_name",
|
||||
table: "trait",
|
||||
columns: new[] { "profile_id", "trait_name" },
|
||||
unique: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_trait_profile_id_trait_name",
|
||||
table: "trait");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_trait_profile_id",
|
||||
table: "trait",
|
||||
column: "profile_id");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user