mirror of
https://github.com/CannedNet/CannedNet.git
synced 2026-10-25 23:18:54 -07:00
284db74d0e
reccenter still doesnt work
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CannedNet.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class RemoveUniqueOwnerAccountId : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_room_instances_OwnerAccountId",
|
|
table: "room_instances");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_room_instances_OwnerAccountId_roomId",
|
|
table: "room_instances",
|
|
columns: new[] { "OwnerAccountId", "roomId" });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_room_instances_OwnerAccountId_roomId",
|
|
table: "room_instances");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_room_instances_OwnerAccountId",
|
|
table: "room_instances",
|
|
column: "OwnerAccountId",
|
|
unique: true);
|
|
}
|
|
}
|
|
}
|