1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
-
- namespace UnivateProperties_API.Migrations
- {
- public partial class PlaceHolder : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn<string>(
- name: "BoundToClass",
- table: "PlaceHolders",
- nullable: true);
-
- migrationBuilder.AddColumn<string>(
- name: "BoundToClassDisplay",
- table: "PlaceHolders",
- nullable: true);
-
- migrationBuilder.AddColumn<DateTime>(
- name: "Created",
- table: "PlaceHolders",
- nullable: false,
- defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
-
- migrationBuilder.AddColumn<bool>(
- name: "IsDeleted",
- table: "PlaceHolders",
- nullable: false,
- defaultValue: false);
-
- migrationBuilder.AddColumn<DateTime>(
- name: "Modified",
- table: "PlaceHolders",
- nullable: false,
- defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
-
- migrationBuilder.AddColumn<string>(
- name: "ModifiedBy",
- table: "PlaceHolders",
- nullable: true);
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "BoundToClass",
- table: "PlaceHolders");
-
- migrationBuilder.DropColumn(
- name: "BoundToClassDisplay",
- table: "PlaceHolders");
-
- migrationBuilder.DropColumn(
- name: "Created",
- table: "PlaceHolders");
-
- migrationBuilder.DropColumn(
- name: "IsDeleted",
- table: "PlaceHolders");
-
- migrationBuilder.DropColumn(
- name: "Modified",
- table: "PlaceHolders");
-
- migrationBuilder.DropColumn(
- name: "ModifiedBy",
- table: "PlaceHolders");
- }
- }
- }
|