40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
|
|
using System;
|
||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
|
|
||
|
|
#nullable disable
|
||
|
|
|
||
|
|
namespace Meezi.Infrastructure.Data.Migrations
|
||
|
|
{
|
||
|
|
/// <inheritdoc />
|
||
|
|
public partial class AddSubscriptionScheduling : Migration
|
||
|
|
{
|
||
|
|
/// <inheritdoc />
|
||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||
|
|
{
|
||
|
|
migrationBuilder.AddColumn<DateTime>(
|
||
|
|
name: "EffectiveFrom",
|
||
|
|
table: "SubscriptionPayments",
|
||
|
|
type: "timestamp with time zone",
|
||
|
|
nullable: true);
|
||
|
|
|
||
|
|
migrationBuilder.AddColumn<DateTime>(
|
||
|
|
name: "EffectiveTo",
|
||
|
|
table: "SubscriptionPayments",
|
||
|
|
type: "timestamp with time zone",
|
||
|
|
nullable: true);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <inheritdoc />
|
||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||
|
|
{
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "EffectiveFrom",
|
||
|
|
table: "SubscriptionPayments");
|
||
|
|
|
||
|
|
migrationBuilder.DropColumn(
|
||
|
|
name: "EffectiveTo",
|
||
|
|
table: "SubscriptionPayments");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|