diff options
Diffstat (limited to 'src/DevHive.Web/Migrations/20201216091145_Testing_Attributes_Validation.cs')
| -rw-r--r-- | src/DevHive.Web/Migrations/20201216091145_Testing_Attributes_Validation.cs | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/DevHive.Web/Migrations/20201216091145_Testing_Attributes_Validation.cs b/src/DevHive.Web/Migrations/20201216091145_Testing_Attributes_Validation.cs new file mode 100644 index 0000000..9892aa5 --- /dev/null +++ b/src/DevHive.Web/Migrations/20201216091145_Testing_Attributes_Validation.cs @@ -0,0 +1,49 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace DevHive.Web.Migrations +{ + public partial class Testing_Attributes_Validation : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn<string>( + name: "LastName", + table: "AspNetUsers", + type: "character varying(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "text"); + + migrationBuilder.AlterColumn<string>( + name: "FirstName", + table: "AspNetUsers", + type: "character varying(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "text"); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn<string>( + name: "LastName", + table: "AspNetUsers", + type: "text", + nullable: false, + oldClrType: typeof(string), + oldType: "character varying(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn<string>( + name: "FirstName", + table: "AspNetUsers", + type: "text", + nullable: false, + oldClrType: typeof(string), + oldType: "character varying(50)", + oldMaxLength: 50); + } + } +} |
