Files
CleanArchitecture/CleanArchitecture/CleanArchitecture.Data/Migrations/20240215201317_BaseDomainModelUpdate.cs
Alejandro Sarmiento 7ada54dbf5 BaseRepository implementado
Siguiente video: 50 Implementar metodos personalizados
2024-02-17 13:35:47 +01:00

188 lines
5.9 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CleanArchitecture.Data.Migrations
{
/// <inheritdoc />
public partial class BaseDomainModelUpdate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "CreatedBy",
table: "Videos",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "CreatedDate",
table: "Videos",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "LastModifiedBy",
table: "Videos",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "LastModifiedDate",
table: "Videos",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CreatedBy",
table: "Streamers",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "CreatedDate",
table: "Streamers",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "LastModifiedBy",
table: "Streamers",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "LastModifiedDate",
table: "Streamers",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CreatedBy",
table: "Director",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "CreatedDate",
table: "Director",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "LastModifiedBy",
table: "Director",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "LastModifiedDate",
table: "Director",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CreatedBy",
table: "Actor",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "CreatedDate",
table: "Actor",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "LastModifiedBy",
table: "Actor",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "LastModifiedDate",
table: "Actor",
type: "datetime(6)",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreatedBy",
table: "Videos");
migrationBuilder.DropColumn(
name: "CreatedDate",
table: "Videos");
migrationBuilder.DropColumn(
name: "LastModifiedBy",
table: "Videos");
migrationBuilder.DropColumn(
name: "LastModifiedDate",
table: "Videos");
migrationBuilder.DropColumn(
name: "CreatedBy",
table: "Streamers");
migrationBuilder.DropColumn(
name: "CreatedDate",
table: "Streamers");
migrationBuilder.DropColumn(
name: "LastModifiedBy",
table: "Streamers");
migrationBuilder.DropColumn(
name: "LastModifiedDate",
table: "Streamers");
migrationBuilder.DropColumn(
name: "CreatedBy",
table: "Director");
migrationBuilder.DropColumn(
name: "CreatedDate",
table: "Director");
migrationBuilder.DropColumn(
name: "LastModifiedBy",
table: "Director");
migrationBuilder.DropColumn(
name: "LastModifiedDate",
table: "Director");
migrationBuilder.DropColumn(
name: "CreatedBy",
table: "Actor");
migrationBuilder.DropColumn(
name: "CreatedDate",
table: "Actor");
migrationBuilder.DropColumn(
name: "LastModifiedBy",
table: "Actor");
migrationBuilder.DropColumn(
name: "LastModifiedDate",
table: "Actor");
}
}
}