سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 06:45 UTC
feature/finora-phase1a-supabase-cli-20261016
Phase 1A — Migration identifier diff (read-only)
Source baseline main@bccd474433b4188e43aae345773498ea6fc65209; Supabase migration history on 2026-10-16. Filename/version mismatch only: matching normalized migration names may have equal or unequal SQL content; this report is NOT a complete resulting-schema diff. No production DDL/DML.
- Repo migration files: 81; Production migration entries: 82.
- Prod entries missing by exact filename in repo: 25.
- Repo filenames absent by exact version in Prod history: 24.
- Confirmed unique-name extra: Production
phone_identity_profile; repoiran_enterprise_control_collections. Production also contains duplicate-name migration entries for several workflow guards.
Production history entries absent from tracked files
20261001184454_request_workflow_d1_foundation.sql20261001184503_request_workflow_d1_transition_evidence.sql20261001184545_request_workflow_d1_rpc_security.sql20261001185325_request_workflow_d1_revision_qualification.sql20261001190938_request_workflow_d2_legacy_cutover.sql20261001191221_request_workflow_d2_fk_indexes.sql20261001192215_request_workflow_d3a_step_runtime.sql20261001192230_request_workflow_d3a_security_hardening.sql20261001193827_request_workflow_d3b_conditions_timeline.sql20261001195413_request_workflow_d3c_operations.sql20261001195424_request_workflow_d3c_escalation_conflict_fix.sql20261001195459_request_delegation_to_user_fk_index.sql20261001215549_request_wave1_legacy_transition_guard.sql20261001215557_request_wave1_legacy_transition_guard.sql20261001225044_request_wave2_integrity_hardening.sql20261002034311_request_workflow_d4a_work_queue.sql20261002063121_request_wave2_duplicate_code_guard.sql20261002063123_request_wave3_decision_idempotency.sql20261002063523_request_wave2_duplicate_code_guard.sql20261002063530_request_wave3_decision_idempotency.sql20261002072526_request_wave4b_scheduler_outbox_delivery.sql20261002075156_identity_wave5a_bootstrap.sql20261003033540_request_wave4_operational_integrity.sql20261007165208_phone_identity_profile.sql20261012075507_fix_identity_bootstrap_license_before_membership.sql
Tracked repo files absent by exact filename from Production history
20260929222000_iran_enterprise_foundation_collections.sql20260930222500_iran_enterprise_control_collections.sql20260930223000_iran_enterprise_financial_controls.sql20261001204500_request_workflow_d1_foundation.sql20261001205500_request_workflow_d1_transition_evidence.sql20261001210500_request_workflow_d1_rpc_security.sql20261001211500_request_workflow_d1_revision_qualification.sql20261001223500_request_workflow_d2_legacy_cutover.sql20261001224500_request_workflow_d2_fk_indexes.sql20261001230000_request_workflow_d3a_step_runtime.sql20261001230500_request_workflow_d3a_security_hardening.sql20261001233000_request_workflow_d3b_conditions_timeline.sql20261001235500_request_workflow_d3c_operations.sql20261002000500_request_workflow_d3c_escalation_conflict_fix.sql20261002001000_request_delegation_to_user_fk_index.sql20261002010000_request_wave1_legacy_transition_guard.sql20261002023000_request_wave2_integrity_hardening.sql20261002033000_request_workflow_d4a_work_queue.sql20261002070000_request_wave2_duplicate_code_guard.sql20261002071000_request_wave3_decision_idempotency.sql20261002072000_request_wave4_operational_integrity.sql20261002073500_request_wave4b_scheduler_outbox_delivery.sql20261002080000_identity_wave5a_bootstrap.sql20261012080000_fix_identity_bootstrap_license_before_membership.sql
Required before migration: rebuild the full authenticated Supabase stack from tracked sources; reconcile missing historical phone migration and timestamp aliases without re-applying financial changes; compare actual table/function/trigger/policy/grant catalogs with a reproducible schema-only diff. Stop is mandatory until owner approves continuation after this discrepancy report.