سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 08:00 UTC
docs: enumerate all production-versus-repo migration identifiers before 1A gate
davoodmehraban89 committed
Oct 16, 2026 at 12:52 UTC
fe8aca52d2c95273a5455d55ad1cb87bfdfcd8f6
1 file changed
+65
docs/FINORA_PHASE1A_MIGRATION_VERSION_DIFF_2026-10-16.md
new
+65
@@ -0,0 +1,65 @@
1
+# Phase 1A — Migration identifier diff (read-only)
2
+
3
+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.
4
+
5
+- Repo migration files: **81**; Production migration entries: **82**.
6
+- Prod entries missing by exact filename in repo: **25**.
7
+- Repo filenames absent by exact version in Prod history: **24**.
8
+- Confirmed unique-name extra: Production `phone_identity_profile`; repo `iran_enterprise_control_collections`. Production also contains duplicate-name migration entries for several workflow guards.
9
+
10
+## Production history entries absent from tracked files
11
+
12
+1. `20261001184454_request_workflow_d1_foundation.sql`
13
+2. `20261001184503_request_workflow_d1_transition_evidence.sql`
14
+3. `20261001184545_request_workflow_d1_rpc_security.sql`
15
+4. `20261001185325_request_workflow_d1_revision_qualification.sql`
16
+5. `20261001190938_request_workflow_d2_legacy_cutover.sql`
17
+6. `20261001191221_request_workflow_d2_fk_indexes.sql`
18
+7. `20261001192215_request_workflow_d3a_step_runtime.sql`
19
+8. `20261001192230_request_workflow_d3a_security_hardening.sql`
20
+9. `20261001193827_request_workflow_d3b_conditions_timeline.sql`
21
+10. `20261001195413_request_workflow_d3c_operations.sql`
22
+11. `20261001195424_request_workflow_d3c_escalation_conflict_fix.sql`
23
+12. `20261001195459_request_delegation_to_user_fk_index.sql`
24
+13. `20261001215549_request_wave1_legacy_transition_guard.sql`
25
+14. `20261001215557_request_wave1_legacy_transition_guard.sql`
26
+15. `20261001225044_request_wave2_integrity_hardening.sql`
27
+16. `20261002034311_request_workflow_d4a_work_queue.sql`
28
+17. `20261002063121_request_wave2_duplicate_code_guard.sql`
29
+18. `20261002063123_request_wave3_decision_idempotency.sql`
30
+19. `20261002063523_request_wave2_duplicate_code_guard.sql`
31
+20. `20261002063530_request_wave3_decision_idempotency.sql`
32
+21. `20261002072526_request_wave4b_scheduler_outbox_delivery.sql`
33
+22. `20261002075156_identity_wave5a_bootstrap.sql`
34
+23. `20261003033540_request_wave4_operational_integrity.sql`
35
+24. `20261007165208_phone_identity_profile.sql`
36
+25. `20261012075507_fix_identity_bootstrap_license_before_membership.sql`
37
+
38
+## Tracked repo files absent by exact filename from Production history
39
+
40
+1. `20260929222000_iran_enterprise_foundation_collections.sql`
41
+2. `20260930222500_iran_enterprise_control_collections.sql`
42
+3. `20260930223000_iran_enterprise_financial_controls.sql`
43
+4. `20261001204500_request_workflow_d1_foundation.sql`
44
+5. `20261001205500_request_workflow_d1_transition_evidence.sql`
45
+6. `20261001210500_request_workflow_d1_rpc_security.sql`
46
+7. `20261001211500_request_workflow_d1_revision_qualification.sql`
47
+8. `20261001223500_request_workflow_d2_legacy_cutover.sql`
48
+9. `20261001224500_request_workflow_d2_fk_indexes.sql`
49
+10. `20261001230000_request_workflow_d3a_step_runtime.sql`
50
+11. `20261001230500_request_workflow_d3a_security_hardening.sql`
51
+12. `20261001233000_request_workflow_d3b_conditions_timeline.sql`
52
+13. `20261001235500_request_workflow_d3c_operations.sql`
53
+14. `20261002000500_request_workflow_d3c_escalation_conflict_fix.sql`
54
+15. `20261002001000_request_delegation_to_user_fk_index.sql`
55
+16. `20261002010000_request_wave1_legacy_transition_guard.sql`
56
+17. `20261002023000_request_wave2_integrity_hardening.sql`
57
+18. `20261002033000_request_workflow_d4a_work_queue.sql`
58
+19. `20261002070000_request_wave2_duplicate_code_guard.sql`
59
+20. `20261002071000_request_wave3_decision_idempotency.sql`
60
+21. `20261002072000_request_wave4_operational_integrity.sql`
61
+22. `20261002073500_request_wave4b_scheduler_outbox_delivery.sql`
62
+23. `20261002080000_identity_wave5a_bootstrap.sql`
63
+24. `20261012080000_fix_identity_bootstrap_license_before_membership.sql`
64
+
65
+**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.