|
@@ -0,0 +1,53 @@
|
|
1
|
+using System;
|
|
2
|
+using Microsoft.EntityFrameworkCore.Migrations;
|
|
3
|
+using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
4
|
+
|
|
5
|
+namespace UnivateProperties_API.Migrations
|
|
6
|
+{
|
|
7
|
+ public partial class GeorgeNew : Migration
|
|
8
|
+ {
|
|
9
|
+ protected override void Up(MigrationBuilder migrationBuilder)
|
|
10
|
+ {
|
|
11
|
+ migrationBuilder.DropColumn(
|
|
12
|
+ name: "CreatedBy",
|
|
13
|
+ table: "Properties");
|
|
14
|
+
|
|
15
|
+ migrationBuilder.AddColumn<int>(
|
|
16
|
+ name: "GCRecord",
|
|
17
|
+ table: "Properties",
|
|
18
|
+ nullable: true);
|
|
19
|
+
|
|
20
|
+ migrationBuilder.CreateTable(
|
|
21
|
+ name: "SearchLogs",
|
|
22
|
+ columns: table => new
|
|
23
|
+ {
|
|
24
|
+ Id = table.Column<int>(nullable: false)
|
|
25
|
+ .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn),
|
|
26
|
+ Created = table.Column<DateTime>(nullable: false),
|
|
27
|
+ Modified = table.Column<DateTime>(nullable: false),
|
|
28
|
+ ModifiedBy = table.Column<string>(nullable: true),
|
|
29
|
+ UserID = table.Column<int>(nullable: true),
|
|
30
|
+ Search = table.Column<string>(nullable: true)
|
|
31
|
+ },
|
|
32
|
+ constraints: table =>
|
|
33
|
+ {
|
|
34
|
+ table.PrimaryKey("PK_SearchLogs", x => x.Id);
|
|
35
|
+ });
|
|
36
|
+ }
|
|
37
|
+
|
|
38
|
+ protected override void Down(MigrationBuilder migrationBuilder)
|
|
39
|
+ {
|
|
40
|
+ migrationBuilder.DropTable(
|
|
41
|
+ name: "SearchLogs");
|
|
42
|
+
|
|
43
|
+ migrationBuilder.DropColumn(
|
|
44
|
+ name: "GCRecord",
|
|
45
|
+ table: "Properties");
|
|
46
|
+
|
|
47
|
+ migrationBuilder.AddColumn<string>(
|
|
48
|
+ name: "CreatedBy",
|
|
49
|
+ table: "Properties",
|
|
50
|
+ nullable: true);
|
|
51
|
+ }
|
|
52
|
+ }
|
|
53
|
+}
|