refactoring the Register
This commit is contained in:
parent
ee1e49fde5
commit
f1dd648970
43 changed files with 4610 additions and 86 deletions
59
src/Org/Migrations/20260222202324_article.cs
Normal file
59
src/Org/Migrations/20260222202324_article.cs
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Yavsc.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class article : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Content",
|
||||
table: "Comment",
|
||||
newName: "Article");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Content",
|
||||
table: "BlogSpot",
|
||||
newName: "Article");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_MusicalPreference_TendencyId",
|
||||
table: "MusicalPreference",
|
||||
column: "TendencyId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_MusicalPreference_MusicalTendency_TendencyId",
|
||||
table: "MusicalPreference",
|
||||
column: "TendencyId",
|
||||
principalTable: "MusicalTendency",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_MusicalPreference_MusicalTendency_TendencyId",
|
||||
table: "MusicalPreference");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_MusicalPreference_TendencyId",
|
||||
table: "MusicalPreference");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Article",
|
||||
table: "Comment",
|
||||
newName: "Content");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "Article",
|
||||
table: "BlogSpot",
|
||||
newName: "Content");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue