瀏覽代碼

Migrations Added

master
George Williams 5 年之前
父節點
當前提交
1ad9bc78c9

+ 1215
- 0
UnivateProperties_API/Migrations/20191018124608_NewPropertyProperties.Designer.cs
文件差異過大導致無法顯示
查看文件


+ 31
- 0
UnivateProperties_API/Migrations/20191018124608_NewPropertyProperties.cs 查看文件

@@ -0,0 +1,31 @@
1
+using Microsoft.EntityFrameworkCore.Migrations;
2
+
3
+namespace UnivateProperties_API.Migrations
4
+{
5
+    public partial class NewPropertyProperties : Migration
6
+    {
7
+        protected override void Up(MigrationBuilder migrationBuilder)
8
+        {
9
+            migrationBuilder.AddColumn<string>(
10
+                name: "Video",
11
+                table: "Properties",
12
+                nullable: true);
13
+
14
+            migrationBuilder.AddColumn<string>(
15
+                name: "VirtualTour",
16
+                table: "Properties",
17
+                nullable: true);
18
+        }
19
+
20
+        protected override void Down(MigrationBuilder migrationBuilder)
21
+        {
22
+            migrationBuilder.DropColumn(
23
+                name: "Video",
24
+                table: "Properties");
25
+
26
+            migrationBuilder.DropColumn(
27
+                name: "VirtualTour",
28
+                table: "Properties");
29
+        }
30
+    }
31
+}

+ 4
- 0
UnivateProperties_API/Migrations/DataContextModelSnapshot.cs 查看文件

@@ -412,6 +412,10 @@ namespace UnivateProperties_API.Migrations
412 412
 
413 413
                     b.Property<string>("Unit");
414 414
 
415
+                    b.Property<string>("Video");
416
+
417
+                    b.Property<string>("VirtualTour");
418
+
415 419
                     b.HasKey("Id");
416 420
 
417 421
                     b.HasIndex("AgencyId");

+ 1
- 1
UnivateProperties_API/appsettings.json 查看文件

@@ -9,7 +9,7 @@
9 9
   },
10 10
   "AllowedHosts": "*",
11 11
   "ConnectionStrings": {
12
-    "DefaultConnection": "Server=localhost;Port=5432;Database=Univate;User Id=postgres;Password=prov1s1on;",
12
+    "DefaultConnection": "Server=192.168.6.188;Port=5432;Database=Univate;User Id=postgres;Password=prov1s1on;",
13 13
     "TenderConnection": "http://www.unipoint-consoft.co.za/nph-srep.exe?cluvavail_test.sch&CLUB=LPA&RESORT=ALL&SUMMARY=N&HEAD=N"
14 14
   }
15 15
 }

Loading…
取消
儲存