littleshop/LittleShop/Migrations/20251201203358_AddBotDiscoveryStatus.cs
SysAdmin 646ecf77ee
All checks were successful
Build and Deploy LittleShop / Deploy to Production VPS (Manual Only) (push) Has been skipped
Build and Deploy LittleShop / Deploy to Pre-Production (CT109) (push) Successful in 1m7s
feat: Add ShareCardEmbed with local QR code generation and embed modal
- Add ShareCardEmbed.cshtml for embeddable public share card
- Add local qrcode.min.js (removed CDN dependency)
- Fix QR code generation by properly attaching canvas to DOM
- Add embed code modal with iframe and direct link copy buttons
- Use Url.Action() for proper URL generation
- Add bot discovery status migration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 23:08:07 +00:00

74 lines
2.1 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LittleShop.Migrations
{
/// <inheritdoc />
public partial class AddBotDiscoveryStatus : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "DiscoveryStatus",
table: "Bots",
type: "TEXT",
maxLength: 50,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<DateTime>(
name: "LastDiscoveryAt",
table: "Bots",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RemoteAddress",
table: "Bots",
type: "TEXT",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RemoteInstanceId",
table: "Bots",
type: "TEXT",
maxLength: 100,
nullable: true);
migrationBuilder.AddColumn<int>(
name: "RemotePort",
table: "Bots",
type: "INTEGER",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DiscoveryStatus",
table: "Bots");
migrationBuilder.DropColumn(
name: "LastDiscoveryAt",
table: "Bots");
migrationBuilder.DropColumn(
name: "RemoteAddress",
table: "Bots");
migrationBuilder.DropColumn(
name: "RemoteInstanceId",
table: "Bots");
migrationBuilder.DropColumn(
name: "RemotePort",
table: "Bots");
}
}
}