Browse Source

Migrations Added

master
George Williams 5 years ago
parent
commit
1ad9bc78c9

+ 1215
- 0
UnivateProperties_API/Migrations/20191018124608_NewPropertyProperties.Designer.cs
File diff suppressed because it is too large
View File


+ 31
- 0
UnivateProperties_API/Migrations/20191018124608_NewPropertyProperties.cs View File

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 View File

412
 
412
 
413
                     b.Property<string>("Unit");
413
                     b.Property<string>("Unit");
414
 
414
 
415
+                    b.Property<string>("Video");
416
+
417
+                    b.Property<string>("VirtualTour");
418
+
415
                     b.HasKey("Id");
419
                     b.HasKey("Id");
416
 
420
 
417
                     b.HasIndex("AgencyId");
421
                     b.HasIndex("AgencyId");

+ 1
- 1
UnivateProperties_API/appsettings.json View File

9
   },
9
   },
10
   "AllowedHosts": "*",
10
   "AllowedHosts": "*",
11
   "ConnectionStrings": {
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
     "TenderConnection": "http://www.unipoint-consoft.co.za/nph-srep.exe?cluvavail_test.sch&CLUB=LPA&RESORT=ALL&SUMMARY=N&HEAD=N"
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…
Cancel
Save