34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|