2022-05-03 06:33:14 +00:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2022-01-29 14:13:19 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Migrations
|
|
|
|
|
{
|
|
|
|
|
public partial class AddSkinInfoHash : Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
|
|
|
name: "Hash",
|
|
|
|
|
table: "SkinInfo",
|
|
|
|
|
nullable: true);
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "IX_SkinInfo_DeletePending",
|
|
|
|
|
table: "SkinInfo",
|
|
|
|
|
column: "DeletePending");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "IX_SkinInfo_Hash",
|
|
|
|
|
table: "SkinInfo",
|
|
|
|
|
column: "Hash",
|
|
|
|
|
unique: true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropIndex(
|
|
|
|
|
name: "IX_SkinInfo_DeletePending",
|
|
|
|
|
table: "SkinInfo");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropIndex(
|
|
|
|
|
name: "IX_SkinInfo_Hash",
|
|
|
|
|
table: "SkinInfo");
|
|
|
|
|
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "Hash",
|
|
|
|
|
table: "SkinInfo");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|