32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
namespace BlazorApp.Migrations
|
|||
|
{
|
|||
|
public partial class InitialCreate : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.CreateTable(
|
|||
|
name: "Calendars",
|
|||
|
columns: table => new
|
|||
|
{
|
|||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|||
|
.Annotation("Sqlite:Autoincrement", true),
|
|||
|
Url = table.Column<string>(type: "TEXT", nullable: true),
|
|||
|
Username = table.Column<string>(type: "TEXT", nullable: true),
|
|||
|
Password = table.Column<string>(type: "TEXT", nullable: true)
|
|||
|
},
|
|||
|
constraints: table =>
|
|||
|
{
|
|||
|
table.PrimaryKey("PK_Calendars", x => x.Id);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropTable(
|
|||
|
name: "Calendars");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|