// SPDX-FileCopyrightText: 2026 Progmasoft // SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.0 using Microsoft.EntityFrameworkCore.Migrations; namespace XSharp.Web.Api.Data.Migrations { /// public partial class AddPublisherNames : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "NormalizedPublisherName", schema: "registry", table: "AspNetUsers", type: "character varying(128)", maxLength: 128, nullable: true); migrationBuilder.AddColumn( name: "PublisherName", schema: "registry", table: "AspNetUsers", type: "character varying(128)", maxLength: 128, nullable: true); migrationBuilder.CreateIndex( name: "PublisherNameIndex", schema: "registry", table: "AspNetUsers", column: "NormalizedPublisherName", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "PublisherNameIndex", schema: "registry", table: "AspNetUsers"); migrationBuilder.DropColumn( name: "NormalizedPublisherName", schema: "registry", table: "AspNetUsers"); migrationBuilder.DropColumn( name: "PublisherName", schema: "registry", table: "AspNetUsers"); } } }