mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
Refactors the track slice across the stack
This commit is contained in:
1 parent
d4cc3c1f8d
commit
b398f26bfe
25 files changed
+2927
-432
No files matched your search
Generated
+2609
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 MakesTrackPathUniquePerLibrary : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Tracks_LibraryId_Path",
|
||||
table: "Tracks");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Tracks_LibraryId_Path",
|
||||
table: "Tracks",
|
||||
columns: new[] { "LibraryId", "Path" },
|
||||
unique: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Tracks_LibraryId_Path",
|
||||
table: "Tracks");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Tracks_LibraryId_Path",
|
||||
table: "Tracks",
|
||||
columns: new[] { "LibraryId", "Path" });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user