Bläddra i källkod

Added Migration

master
George Williams 5 år sedan
förälder
incheckning
f0af7b3555

+ 1028
- 0
UnivateProperties_API/Migrations/20190912055827_SearchLogStuff.Designer.cs
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 40
- 0
UnivateProperties_API/Migrations/20190912055827_SearchLogStuff.cs Visa fil

@@ -0,0 +1,40 @@
1
+using Microsoft.EntityFrameworkCore.Migrations;
2
+
3
+namespace UnivateProperties_API.Migrations
4
+{
5
+    public partial class SearchLogStuff : Migration
6
+    {
7
+        protected override void Up(MigrationBuilder migrationBuilder)
8
+        {
9
+            migrationBuilder.DropColumn(
10
+                name: "UserID",
11
+                table: "SearchLogs");
12
+
13
+            migrationBuilder.DropColumn(
14
+                name: "GCRecord",
15
+                table: "Properties");
16
+
17
+            migrationBuilder.AddColumn<string>(
18
+                name: "Type",
19
+                table: "SearchLogs",
20
+                nullable: true);
21
+        }
22
+
23
+        protected override void Down(MigrationBuilder migrationBuilder)
24
+        {
25
+            migrationBuilder.DropColumn(
26
+                name: "Type",
27
+                table: "SearchLogs");
28
+
29
+            migrationBuilder.AddColumn<int>(
30
+                name: "UserID",
31
+                table: "SearchLogs",
32
+                nullable: true);
33
+
34
+            migrationBuilder.AddColumn<int>(
35
+                name: "GCRecord",
36
+                table: "Properties",
37
+                nullable: true);
38
+        }
39
+    }
40
+}

+ 2
- 4
UnivateProperties_API/Migrations/DataContextModelSnapshot.cs Visa fil

@@ -16,7 +16,7 @@ namespace UnivateProperties_API.Migrations
16 16
 #pragma warning disable 612, 618
17 17
             modelBuilder
18 18
                 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn)
19
-                .HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
19
+                .HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
20 20
                 .HasAnnotation("Relational:MaxIdentifierLength", 63);
21 21
 
22 22
             modelBuilder.Entity("UnivateProperties_API.Model.Banks.Bank", b =>
@@ -166,7 +166,7 @@ namespace UnivateProperties_API.Migrations
166 166
 
167 167
                     b.Property<string>("Search");
168 168
 
169
-                    b.Property<int?>("UserID");
169
+                    b.Property<string>("Type");
170 170
 
171 171
                     b.HasKey("Id");
172 172
 
@@ -286,8 +286,6 @@ namespace UnivateProperties_API.Migrations
286 286
 
287 287
                     b.Property<string>("Description");
288 288
 
289
-                    b.Property<int?>("GCRecord");
290
-
291 289
                     b.Property<bool>("IsSale");
292 290
 
293 291
                     b.Property<DateTime>("Modified");

Laddar…
Avbryt
Spara