Skip to content

Commit

Permalink
fix tags ordering (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticFragilist authored Apr 1, 2024
1 parent 1df2dcf commit 17e72a9
Show file tree
Hide file tree
Showing 6 changed files with 543 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/Migrations/20240304173507_AltTextAndTags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
nullable: false,
defaultValue: "");

migrationBuilder.InsertData("Tag", TagSeed.Columns, TagSeed.TagValues);
migrationBuilder.InsertData("Tag", TagSeed0Initial.Columns, TagSeed0Initial.TagValues);
}

/// <inheritdoc />
Expand All @@ -40,9 +40,9 @@ protected override void Down(MigrationBuilder migrationBuilder)
nullable: false,
defaultValue: new byte[0]);

for(int i = 0; i < TagSeed.TagValues.Length; i++)
for(int i = 0; i < TagSeed0Initial.TagValues.Length; i++)
{
Guid id = (Guid)TagSeed.TagValues[i, 0];
Guid id = (Guid)TagSeed0Initial.TagValues[i, 0];
migrationBuilder.DeleteData("Tag", "Id", id);
}
}
Expand Down
Loading

0 comments on commit 17e72a9

Please sign in to comment.