aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-13 13:06:05 +0800
committercrupest <crupest@outlook.com>2019-04-13 13:06:05 +0800
commit4f16c1d3dff716092e1a26e06e6cfbeec90c027c (patch)
tree8ecd711d2b1c97754b321ef0e0bc7de45d303cbd /Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs
parentfac5006e7eaf7f7bc23e92a2b3059d4f1b37fa07 (diff)
parent401a5b74696c471e5168e421e3de0db1e5f946a8 (diff)
downloadtimeline-4f16c1d3dff716092e1a26e06e6cfbeec90c027c.tar.gz
timeline-4f16c1d3dff716092e1a26e06e6cfbeec90c027c.tar.bz2
timeline-4f16c1d3dff716092e1a26e06e6cfbeec90c027c.zip
Merge branch '6-user' into separate
Diffstat (limited to 'Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs')
-rw-r--r--Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs b/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs
new file mode 100644
index 00000000..0b7b5f08
--- /dev/null
+++ b/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs
@@ -0,0 +1,52 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+namespace Timeline.Migrations
+{
+ public partial class MakeColumnsInUserNotNull : Migration
+ {
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AlterColumn<string>(
+ name: "roles",
+ table: "user",
+ nullable: false,
+ oldClrType: typeof(string),
+ oldNullable: true);
+
+ migrationBuilder.AlterColumn<string>(
+ name: "name",
+ table: "user",
+ nullable: false,
+ oldClrType: typeof(string),
+ oldNullable: true);
+
+ migrationBuilder.AlterColumn<string>(
+ name: "password",
+ table: "user",
+ nullable: false,
+ oldClrType: typeof(string),
+ oldNullable: true);
+ }
+
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AlterColumn<string>(
+ name: "roles",
+ table: "user",
+ nullable: true,
+ oldClrType: typeof(string));
+
+ migrationBuilder.AlterColumn<string>(
+ name: "name",
+ table: "user",
+ nullable: true,
+ oldClrType: typeof(string));
+
+ migrationBuilder.AlterColumn<string>(
+ name: "password",
+ table: "user",
+ nullable: true,
+ oldClrType: typeof(string));
+ }
+ }
+}