1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
-
- namespace UnivateProperties_API.Migrations
- {
- public partial class GeorgeNew : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "CreatedBy",
- table: "Properties");
-
- migrationBuilder.AddColumn<int>(
- name: "GCRecord",
- table: "Properties",
- nullable: true);
-
- migrationBuilder.CreateTable(
- name: "SearchLogs",
- columns: table => new
- {
- Id = table.Column<int>(nullable: false)
- .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn),
- Created = table.Column<DateTime>(nullable: false),
- Modified = table.Column<DateTime>(nullable: false),
- ModifiedBy = table.Column<string>(nullable: true),
- UserID = table.Column<int>(nullable: true),
- Search = table.Column<string>(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_SearchLogs", x => x.Id);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "SearchLogs");
-
- migrationBuilder.DropColumn(
- name: "GCRecord",
- table: "Properties");
-
- migrationBuilder.AddColumn<string>(
- name: "CreatedBy",
- table: "Properties",
- nullable: true);
- }
- }
- }
|