Changing to database schema to ensure separations of concerns instead of connection string
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Hutopy.Web.Contents.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class ChangingContentDefaultSchema : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.EnsureSchema(
|
||||
name: "Content");
|
||||
|
||||
migrationBuilder.RenameTable(
|
||||
name: "Contents",
|
||||
newName: "Contents",
|
||||
newSchema: "Content");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameTable(
|
||||
name: "Contents",
|
||||
schema: "Content",
|
||||
newName: "Contents");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user