9a92da42e6
- RegisterFacility: '📍 موقعیت فعلی من' (browser geolocation, always available) + Neshan Leaflet map (click/drag marker → fills lat/lng) when a Neshan web key is set; graceful fallback to manual coords without a key - AppSetting.NeshanMapKey configured in /Admin/Settings (Google Maps is blocked in Iran); migration - Verified: location button + inputs render always; map + SDK render once the key is saved Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
30 lines
789 B
C#
30 lines
789 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace JobsMedical.Web.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class NeshanMapKey : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "NeshanMapKey",
|
|
table: "AppSettings",
|
|
type: "character varying(200)",
|
|
maxLength: 200,
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "NeshanMapKey",
|
|
table: "AppSettings");
|
|
}
|
|
}
|
|
}
|