mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 01:11:10 +00:00
Refactors the artist slice across the stack
This commit is contained in:
1 parent
c112c64c25
commit
aa097ecc98
55 files changed
+3219
-278
No files matched your search
Generated
+2608
File diff suppressed because it is too large.
Load diff
+37
@@ -0,0 +1,37 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Lumina.DataAccess.Common.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class MakesArtistNameUniquePerLibrary : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Artists_LibraryId_Name",
|
||||
table: "Artists");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Artists_LibraryId_Name",
|
||||
table: "Artists",
|
||||
columns: new[] { "LibraryId", "Name" },
|
||||
unique: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Artists_LibraryId_Name",
|
||||
table: "Artists");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Artists_LibraryId_Name",
|
||||
table: "Artists",
|
||||
columns: new[] { "LibraryId", "Name" });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user