BacupFunctionality

This commit is contained in:
2021-03-17 08:33:02 +01:00
parent 0d8f884544
commit 154f8cc07a
21 changed files with 674 additions and 9 deletions

View File

@ -0,0 +1,33 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace DatamodelLibrary.Migrations
{
public partial class backupregister : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "BackupRegings",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
BackedUp = table.Column<DateTime>(type: "TEXT", nullable: false),
DbName = table.Column<string>(type: "TEXT", nullable: true),
BackupDbName = table.Column<string>(type: "TEXT", nullable: true),
BackupPath = table.Column<string>(type: "TEXT", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_BackupRegings", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "BackupRegings");
}
}
}