42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
// Copyright (c) HelloShop Corporation. All rights reserved.
|
|
// See the license file in the project root for more information.
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace HelloShop.OrderingService.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddEventLogTable : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "event_type_name",
|
|
table: "distributed_event_log",
|
|
type: "character varying(64)",
|
|
maxLength: 64,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(32)",
|
|
oldMaxLength: 32);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "event_type_name",
|
|
table: "distributed_event_log",
|
|
type: "character varying(32)",
|
|
maxLength: 32,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(64)",
|
|
oldMaxLength: 64);
|
|
}
|
|
}
|
|
}
|