- Rename all TrueCV references to RealCV across the codebase - Add new transparent RealCV logo - Switch from JetBrains Mono to Inter font for better number clarity - Update solution, project files, and namespaces 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
70 lines
2.1 KiB
C#
70 lines
2.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace RealCV.Infrastructure.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddStripeSubscriptionFields : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "CurrentPeriodEnd",
|
|
table: "AspNetUsers",
|
|
type: "datetime2",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "StripeSubscriptionId",
|
|
table: "AspNetUsers",
|
|
type: "nvarchar(256)",
|
|
maxLength: 256,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubscriptionStatus",
|
|
table: "AspNetUsers",
|
|
type: "nvarchar(32)",
|
|
maxLength: 32,
|
|
nullable: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Users_StripeCustomerId",
|
|
table: "AspNetUsers",
|
|
column: "StripeCustomerId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Users_StripeSubscriptionId",
|
|
table: "AspNetUsers",
|
|
column: "StripeSubscriptionId");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Users_StripeCustomerId",
|
|
table: "AspNetUsers");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Users_StripeSubscriptionId",
|
|
table: "AspNetUsers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "CurrentPeriodEnd",
|
|
table: "AspNetUsers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "StripeSubscriptionId",
|
|
table: "AspNetUsers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "SubscriptionStatus",
|
|
table: "AspNetUsers");
|
|
}
|
|
}
|
|
}
|