|
@@ -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
|
+}
|