aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Migrations/20201216091145_Testing_Attributes_Validation.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2020-12-16 12:14:57 +0200
committertranstrike <transtrike@gmail.com>2020-12-16 12:14:57 +0200
commitc50beb167dabe08d6407b54630bfe2b47eab23e6 (patch)
treec45dd872837b00063ee556adcc0cb8cc0d62e0bb /src/DevHive.Web/Migrations/20201216091145_Testing_Attributes_Validation.cs
parent426c36fddb0188a60c332e2a345a05236dda0c0f (diff)
downloadDevHive-c50beb167dabe08d6407b54630bfe2b47eab23e6.tar
DevHive-c50beb167dabe08d6407b54630bfe2b47eab23e6.tar.gz
DevHive-c50beb167dabe08d6407b54630bfe2b47eab23e6.zip
Changed models in the Service to have inheritance
Diffstat (limited to 'src/DevHive.Web/Migrations/20201216091145_Testing_Attributes_Validation.cs')
-rw-r--r--src/DevHive.Web/Migrations/20201216091145_Testing_Attributes_Validation.cs49
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);
+ }
+ }
+}