Spaces:
Sleeping
Sleeping
Claude Opus 5.5
feat: remove AI assistant, Free/Plus plans, user templates API, security fixes
6d07d79 Download FlowAPI.Infrastructure/Migrations/20261017120000_MergeTiersIntoPlus.cs from DanilDrotik/FlowAPI: direct link, hf CLI and curl.
- Browser
- Download file 977 Bytes
-
https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/main/FlowAPI.Infrastructure/Migrations/20261017120000_MergeTiersIntoPlus.cs
- Command line
-
hf download hf://spaces/DanilDrotik/FlowAPI/FlowAPI.Infrastructure/Migrations/20261017120000_MergeTiersIntoPlus.cs
-
curl -L -o 20261017120000_MergeTiersIntoPlus.cs https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/main/FlowAPI.Infrastructure/Migrations/20261017120000_MergeTiersIntoPlus.cs
977 Bytes
| using FlowAPI.Infrastructure.Data; | |
| using Microsoft.EntityFrameworkCore.Infrastructure; | |
| using Microsoft.EntityFrameworkCore.Migrations; | |
| namespace FlowAPI.Infrastructure.Migrations | |
| { | |
| /// <summary> | |
| /// Data-only migration: the Pro and Ultra tiers were merged into a single Plus plan. | |
| /// </summary> | |
| [] | |
| [] | |
| 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';"); | |
| } | |
| } | |
| } | |