Add project files.
This commit is contained in:
33
DatamodelLibrary/Migrations/20210316200448_backupregister.cs
Normal file
33
DatamodelLibrary/Migrations/20210316200448_backupregister.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user