aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-08 16:54:03 +0800
committer杨宇千 <crupest@outlook.com>2019-08-08 16:54:03 +0800
commitd018e1c318646c6d7fecc8d3824129e9f1d5cf6c (patch)
treeda11e395a3fd1340187fb785fc17e570171b942b /Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs
parentdc1ab11cea249f4ca967f86b115147a63f7c93a5 (diff)
parente283a3e745bad05a55c572646d7b20fbaaeb522d (diff)
downloadtimeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.tar.gz
timeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.tar.bz2
timeline-d018e1c318646c6d7fecc8d3824129e9f1d5cf6c.zip
Merge branch 'master' into null-request-field
Diffstat (limited to 'Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs')
-rw-r--r--Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs104
1 files changed, 52 insertions, 52 deletions
diff --git a/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs b/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs
index 0b7b5f08..12053906 100644
--- a/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs
+++ b/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs
@@ -1,52 +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));
- }
- }
-}
+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));
+ }
+ }
+}