39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace LiteCharms.Infrastructure.Database.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class GeneralisedLead : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "GoogleClickId",
|
|
table: "Lead",
|
|
newName: "Source");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ClickId",
|
|
table: "Lead",
|
|
type: "text",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ClickId",
|
|
table: "Lead");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "Source",
|
|
table: "Lead",
|
|
newName: "GoogleClickId");
|
|
}
|
|
}
|
|
}
|