From 00c3b32e2db200a2f42396ac7f8381704ec97268 Mon Sep 17 00:00:00 2001 From: Paweł Bernaciak Date: Fri, 10 Feb 2023 16:19:46 +0100 Subject: Initial Commit --- CoreWiki/Migrations/20230209093124_initial.cs | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 CoreWiki/Migrations/20230209093124_initial.cs (limited to 'CoreWiki/Migrations/20230209093124_initial.cs') diff --git a/CoreWiki/Migrations/20230209093124_initial.cs b/CoreWiki/Migrations/20230209093124_initial.cs new file mode 100644 index 0000000..84a7453 --- /dev/null +++ b/CoreWiki/Migrations/20230209093124_initial.cs @@ -0,0 +1,35 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace CoreWiki.Migrations +{ + /// + public partial class initial : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Articles", + columns: table => new + { + Topic = table.Column(type: "TEXT", nullable: false), + Published = table.Column(type: "TEXT", nullable: false), + Content = table.Column(type: "TEXT", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Articles", x => x.Topic); + }); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Articles"); + } + } +} -- cgit v1.2.3