Przeglądaj źródła

Added migration

master
Kobus 5 lat temu
rodzic
commit
4bb2c4d18f

+ 1211
- 0
UnivateProperties_API/Migrations/20191014135639_PlaceHolder.Designer.cs
Plik diff jest za duży
Wyświetl plik


+ 71
- 0
UnivateProperties_API/Migrations/20191014135639_PlaceHolder.cs Wyświetl plik

@@ -0,0 +1,71 @@
1
+using System;
2
+using Microsoft.EntityFrameworkCore.Migrations;
3
+
4
+namespace UnivateProperties_API.Migrations
5
+{
6
+    public partial class PlaceHolder : Migration
7
+    {
8
+        protected override void Up(MigrationBuilder migrationBuilder)
9
+        {
10
+            migrationBuilder.AddColumn<string>(
11
+                name: "BoundToClass",
12
+                table: "PlaceHolders",
13
+                nullable: true);
14
+
15
+            migrationBuilder.AddColumn<string>(
16
+                name: "BoundToClassDisplay",
17
+                table: "PlaceHolders",
18
+                nullable: true);
19
+
20
+            migrationBuilder.AddColumn<DateTime>(
21
+                name: "Created",
22
+                table: "PlaceHolders",
23
+                nullable: false,
24
+                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
25
+
26
+            migrationBuilder.AddColumn<bool>(
27
+                name: "IsDeleted",
28
+                table: "PlaceHolders",
29
+                nullable: false,
30
+                defaultValue: false);
31
+
32
+            migrationBuilder.AddColumn<DateTime>(
33
+                name: "Modified",
34
+                table: "PlaceHolders",
35
+                nullable: false,
36
+                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
37
+
38
+            migrationBuilder.AddColumn<string>(
39
+                name: "ModifiedBy",
40
+                table: "PlaceHolders",
41
+                nullable: true);
42
+        }
43
+
44
+        protected override void Down(MigrationBuilder migrationBuilder)
45
+        {
46
+            migrationBuilder.DropColumn(
47
+                name: "BoundToClass",
48
+                table: "PlaceHolders");
49
+
50
+            migrationBuilder.DropColumn(
51
+                name: "BoundToClassDisplay",
52
+                table: "PlaceHolders");
53
+
54
+            migrationBuilder.DropColumn(
55
+                name: "Created",
56
+                table: "PlaceHolders");
57
+
58
+            migrationBuilder.DropColumn(
59
+                name: "IsDeleted",
60
+                table: "PlaceHolders");
61
+
62
+            migrationBuilder.DropColumn(
63
+                name: "Modified",
64
+                table: "PlaceHolders");
65
+
66
+            migrationBuilder.DropColumn(
67
+                name: "ModifiedBy",
68
+                table: "PlaceHolders");
69
+        }
70
+    }
71
+}

+ 12
- 0
UnivateProperties_API/Migrations/DataContextModelSnapshot.cs Wyświetl plik

@@ -116,6 +116,18 @@ namespace UnivateProperties_API.Migrations
116 116
 
117 117
                     b.Property<string>("BoundTo");
118 118
 
119
+                    b.Property<string>("BoundToClass");
120
+
121
+                    b.Property<string>("BoundToClassDisplay");
122
+
123
+                    b.Property<DateTime>("Created");
124
+
125
+                    b.Property<bool>("IsDeleted");
126
+
127
+                    b.Property<DateTime>("Modified");
128
+
129
+                    b.Property<string>("ModifiedBy");
130
+
119 131
                     b.Property<string>("Name");
120 132
 
121 133
                     b.Property<int>("TemplateId");

Ładowanie…
Anuluj
Zapisz