diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-31 14:58:36 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-31 14:58:36 +0800 |
commit | cf2055f956695bc0b9ecdb6d8023d0d199b98462 (patch) | |
tree | ba42530cf4f13621a7a3a7ff661e383117119883 /Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs | |
parent | a1109e9ac3f059e27089d981972f53bfe61e8f46 (diff) | |
download | timeline-cf2055f956695bc0b9ecdb6d8023d0d199b98462.tar.gz timeline-cf2055f956695bc0b9ecdb6d8023d0d199b98462.tar.bz2 timeline-cf2055f956695bc0b9ecdb6d8023d0d199b98462.zip |
Recreate database and migrations.
Diffstat (limited to 'Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs')
-rw-r--r-- | Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs b/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs deleted file mode 100644 index 12053906..00000000 --- a/Timeline/Migrations/20190412153003_MakeColumnsInUserNotNull.cs +++ /dev/null @@ -1,52 +0,0 @@ -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));
- }
- }
-}
|