Spaces:
Sleeping
Sleeping
File size: 977 Bytes
6d07d79 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | using FlowAPI.Infrastructure.Data;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FlowAPI.Infrastructure.Migrations
{
/// <summary>
/// Data-only migration: the Pro and Ultra tiers were merged into a single Plus plan.
/// </summary>
[DbContext(typeof(AppDbContext))]
[Migration("20261017120000_MergeTiersIntoPlus")]
public partial class MergeTiersIntoPlus : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql("UPDATE Users SET SubscriptionTier = 'Plus', IsPremium = 1 WHERE SubscriptionTier IN ('Pro', 'Ultra');");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql("UPDATE Users SET SubscriptionTier = 'Pro' WHERE SubscriptionTier = 'Plus';");
}
}
}
|