Split Json data models coming from REST Api, from the Database models storing them in a SQLite database. Work to re-engineer endpoints to use Database objects, and copy/update data from the json objects. More work is needed.
28 lines
720 B
C#
28 lines
720 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace FreeTubeSync.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class SwitchToSplit : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "Value",
|
|
table: "Settings",
|
|
newName: "value");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "value",
|
|
table: "Settings",
|
|
newName: "Value");
|
|
}
|
|
}
|
|
}
|