mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Add hash and missing indices to SkinInfo
This commit is contained in:
41
osu.Game/Migrations/20181128100659_AddSkinInfoHash.cs
Normal file
41
osu.Game/Migrations/20181128100659_AddSkinInfoHash.cs
Normal file
@ -0,0 +1,41 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user