SQL catalogue

Each package lists its SQL files by name. Your selected catalogue determines which files apply and in what order. Follow your application's migration chain in Upgrade the database.

Order money foreign-key refusals

SQLSTATE Constraint Remedy
23503 commerce_orders_money_snapshot_fkey, commerce_order_items_money_source_fkey Write the order money snapshot and its line sources in the same transaction as the order.

@openlup/outbox

@openlup/platform

File
00000000000000_platform_baseline.sql
20260807140000_read_parity_catalog.sql
20260807190000_comms_outbox_rail.sql
20260808120000_subscription_lifecycle_rail.sql
20260808180000_oms_order_hold_rail.sql
20260808210000_fulfillment_shipment_rail.sql
20260809150000_job_run_ledger.sql
20260809150001_job_run_ledger_v3.sql
20260809210000_accounting_document_rail.sql
20260810120000_storefront_catalog_attributes.sql
20260810120001_transactional_delivery_receipts.sql
20260810180000_payment_settlement_rail.sql
20260810180001_self_host_actor_auth.sql
20260810204057_customer_identity_read.sql
20260811150000_accounting_payout_rail.sql
20260812100000_customer_subscription_pause_actor.sql
20260812130000_accounting_document_lifecycle_rail.sql
20260812140000_sellable_bundle_catalog.sql
20260812150000_sales_channel_registry.sql
20260812160000_commerce_order_source_axis.sql
20260812210000_bundle_operator_write_boundary.sql
20260813120000_communications_control_plane.sql
20260813150000_channel_order_ingest.sql
20260813200000_customer_subscription_control.sql
20260813201000_customer_subscription_control_validate.sql
20260813210000_channel_order_pull_job_control.sql
20260813220000_merchandising_order_draft.sql
20260813230000_post_order_control.sql
20260814000000_fulfillment_stock_evidence.sql
20260814010000_platform_control_plane.sql
20260814090000_customer_selfservice_recovery.sql
20260814130000_channel_bundle_lines.sql
20260814150000_subscription_activation_spine.sql
20260815090000_dunning_lifecycle_state.sql
20260815120000_automatic_subscription_renewal.sql
20260815130000_customer_recovery_console.sql
20260815150000_payment_truth_reconciliation.sql
20260815180000_subscriber_retention_messaging.sql
20260816100000_order_review_capability.sql
20260816140000_acquisition_case_foundation.sql
20260817100000_oms_control_plane_operator_bridge.sql
20260817110000_partner_acquisition_lifecycle.sql
20260817110100_partner_acquisition_lifecycle_validate.sql
20260817111000_partner_acquisition_locale_constraint.sql
20260817111100_partner_acquisition_locale_constraint_validate.sql
20260817120000_prelaunch_acquisition_projection.sql
20260817130000_acquisition_survey_newsletter_evidence.sql
20260817130000_customer_support_journey_recovery_status.sql
20260817180000_promotion_claim_lifecycle.sql
20260817180100_promotion_claim_lifecycle_validation.sql
20260818120000_checkout_recovery_lifecycle.sql
20260818150000_operator_lead_absorption.sql
20260819150000_fulfillment_shipment_sequence.sql
20260820170000_channel_delivery_selection.sql
20260824090000_checkout_recovery_operator_email_authorize.sql
20260824130000_closed_order_hold_closure.sql
20260826063555_customer_support_search_v3.sql
20260826100000_late_payment_shifts_the_subscription_cycle.sql
20260826170001_subscriber_retention_timing_windows.sql
20260827220000_catalog_document_revision_foundation.sql
20260827220001_catalog_document_revision_foundation_validate.sql
20260901143000_admin_membership_authority_foundation.sql
20260908100000_catalog_draft_foundation.sql
20260912190000_customer_diagnostic_history.sql
20260913120000_customer_diagnostic_coverage_v2.sql
20260913125000_customer_diagnostic_overview_v2.sql
20260914120000_customer_diagnostic_ingress_identity.sql
20260914130000_customer_diagnostic_prune_job.sql
20261018120000_identity_operator_invitations.sql
20261018180000_identity_operator_challenges.sql
20261018190000_identity_privacy_erasures.sql
20261019200000_communications_native_operations.sql
20261021120000_dunning_lifecycle_active_repair.sql
20261021200000_shipping_flat_rate_seed.sql
20261022080000_fulfillment_command_ledger.sql
20261022090000_fulfillment_delivery_alignment.sql
20261022160000_subscription_retry_lifecycle.sql
20261022165000_fulfillment_stock_evidence_replay_reopen.sql
20261022190000_invoicing_durable_duties.sql
20261022191000_invoicing_document_effects.sql
20261022192000_invoicing_payment_decoupling.sql
20261022195000_invoicing_seller_revision.sql
20261024170000_subscription_command_lifecycle.sql
20261024180000_subscription_stock_wait.sql
20261024183000_inventory_available_to_promise.sql
20261024184000_subscription_renewal_reserve_uses_seam.sql
20261024184500_subscription_retry_late_positive_stock.sql
20261024184600_subscription_retry_candidate_payment_filter.sql
20261026120000_account_support_operator_authority.sql
20261030110000_customer_newsletter_withdrawal.sql
20261030121000_channel_retained_basis.sql
20261030122000_channel_purchased_source.sql
20261101222000_sandbox_payment_attempts.sql
20261101223000_subscription_purchase_renewal.sql
20261101224000_new_purchase_inventory_reservations.sql
20261101225000_commerce_destinations.sql
20261101230000_subscription_renewal_terminal_replay.sql
20261101231000_native_paid_email.sql
20261101232000_customer_account_consents.sql
20261106050000_customer_command_key_isolation.sql
20261106060000_subscription_retry_recovery_truth.sql
20261106100000_subscription_lifecycle_closure.sql
20261106120000_subscription_notice_producers.sql
20261106140000_subscriber_winback_policy.sql
20261109100000_subscription_retry_resume.sql
20261109110000_checkout_recovery_link_lifecycle.sql
20261109113000_subscription_auto_resume_delivered_history.sql
20261109120000_subscription_package_editor.sql
20261109130000_subscription_exact_levers.sql
20261109140000_subscription_sized_editor.sql
20261109150000_subscription_auto_resume_paid_history.sql
20261110100000_checkout_recovery_waves.sql
20261110105000_subscription_pause_duration.sql
20261110110000_operator_checkout_links.sql
20261110115000_customer_checkout_links.sql
20261110120000_customer_account_events.sql
20261110140000_fulfillment_parcel_contacts.sql
20261110150000_fulfillment_operator_journeys.sql
20261110155000_fulfillment_parcel_status_fence.sql
20261110160000_oms_human_operator_admission.sql
20261110170000_checkout_recovery_inspection.sql
20261110180000_checkout_recovery_recreation.sql
20261110190000_customer_saved_addresses.sql
20261110200000_operator_order_commands.sql
20261110210000_return_request_decisions.sql
20261110220000_checkout_payment_guidance.sql
20261110230000_operator_shipment_commands.sql
20261110240000_subscription_saved_address_selection.sql
20261110250000_checkout_recovery_attempt.sql
20261110260000_customer_billing_profiles.sql
20261110270000_invoicing_duty_buyer_capture.sql
20261110280000_checkout_recovery_buyer_snapshot.sql
20261111120000_communication_ecommerce_sources.sql
20261114100000_payment_provider_attempt_store.sql
20261114110000_payment_method_refs.sql
20261114120000_payment_reconciliation_refund_evidence.sql
20261119200000_communication_event_prepare_erasure.sql
20261120100000_fulfillment_intake_channel.sql
20261120110000_fulfillment_dispatch_outcomes.sql
20261120120000_fulfillment_provider_intake.sql
20261120130000_fulfillment_alignment_arrival_chronology.sql
20261121090000_payment_provider_profiles.sql
20261121100000_order_delivery_contact_correction.sql
20261122100000_catalog_definition_binding.sql
20261122110000_catalog_quantities.sql
20261122120000_catalog_attributes.sql
20261122130000_catalog_variant_axes.sql
20261122140000_subscription_price_policy_close_digest.sql
20261122150000_catalog_drafts_v2.sql
20261122160000_catalog_drafts_v3.sql
20261122170000_offer_policy_readiness_inputs.sql
20261122180000_catalog_base_price_writer.sql
20261122190000_subscription_cadence_bound.sql
20261123120000_subscription_edit_window_activation.sql
20261123130000_inventory_renewal_protection_policy.sql
20261123140000_checkout_recovery_reminder_schedule.sql
20261123141000_checkout_recovery_reminder_guard.sql
20261123142000_inventory_renewal_protection_validation.sql
20261123147000_inventory_atp_aggregate_renewal_credits.sql
20261123148000_checkout_recovery_reminder_episode_pin.sql
20261123149000_native_durable_capture_evidence.sql
20261123150000_subscription_renewal_due_fairness.sql
20261123152000_inventory_new_purchase_stock_preview.sql
20261123190000_catalog_publication.sql
20261123191000_catalog_publication_commands.sql
20261123192000_subscription_price_policy_close_provenance.sql
20261124090000_fulfillment_advance_shipment_lock_order.sql
20261124100000_outbox_active_partial_indexes.sql
20261124110000_shipment_label_and_address_upsert_atomic.sql
20261124120000_catalog_publication_reads.sql
20261124130000_definer_search_path_pin.sql
20261124140000_catalog_publication_readiness.sql
20261124150000_native_provider_retry_cadence.sql
20261124160000_catalog_canonical_ascii_order.sql
20261124170000_catalog_publication_commit_perf.sql
20261124180000_catalogue_read_grant.sql
20261124200000_checkout_attempt_ledger.sql
20261124220000_catalog_governed_lifecycle.sql
20261124220001_catalog_accepted_references.sql
20261124230000_subscription_profiles.sql
20261125000000_acquisition_definer_search_path_pin.sql
20261125010000_catalog_purchase_admission.sql
20261125050000_subscription_preview_noop_acceptance.sql
20261125060000_subscription_cancel_feedback.sql
20261125070000_job_run_finish_lease_fence.sql
20261125075000_tax_coverage_revisions.sql
20261125080000_commerce_destination_v2_receipts.sql
20261125090000_catalog_runtime_checkout_dark.sql
20261125100000_commerce_destination_v2_checkout.sql
20261125120000_catalog_legacy_draft_fixed_locks.sql
20261125130000_commerce_destination_v2_order_bindings.sql
20261125140000_fulfillment_stock_seed_outcome.sql
20261125150000_checkout_recovery_reminder_install_outcome.sql
20261125170000_tax_calculations.sql
20261125200000_subscription_renewal_registration_units.sql
20261125220000_commerce_destination_v2_typed_refusals.sql
20261125260000_subscription_activation_execute_grants.sql
20261125261000_subscription_activation_units.sql
20261125300000_identity_privacy_required_contributors.sql
20261125310000_function_search_path_pg_temp.sql
20261126010000_settings_wave1_method_expiry_and_claim_hold.sql
20261126020000_settings_wave2_retry_schedule_and_decline_timing.sql
20261126030000_settings_wave3a_operator_slide_and_quote_ttl.sql
20261126520000_catalog_admission_issue_reader.sql
20261126530000_catalog_price_list_basis.sql
20261126540000_tax_calculation_claim_seal.sql
20261127030000_subscription_destination_v2.sql
20261127040000_catalog_price_list_basis_select.sql
20261127041000_catalog_price_writer_v2.sql
20261127060000_function_search_path_pin_remaining.sql
20261127120000_fulfillment_destination_contact_v2.sql
20261127120001_catalog_runtime_checkout_prelock.sql
20261127120002_identity_privacy_erasure_reconciliations.sql
20261127120003_tax_calculation_composition.sql
20261127120004_commerce_money_limits_v2.sql
20261128000000_native_derived_subscription_price.sql
20261128010000_catalog_order_checkout_protection.sql
20261128030000_fulfillment_destination_v2_legacy_ledger_fence.sql
20261128120000_order_money_v2_storage.sql
20261128180000_subscription_destination_read.sql
20261128230000_derived_subscription_price_retired_base.sql
20261128230001_checkout_abandonment_safety_execute_grant.sql
20261129120000_subscription_renewal_generation_seam.sql
20261129130000_payment_capture_time_read.sql
20261129130001_native_renewal_v3_storage.sql
20261129130002_order_money_v2_assert.sql
20261129130501_fulfillment_delivery_without_tracking.sql
20261129130502_catalog_governed_draft_owner.sql
20261129130503_order_money_v2_restore_no_temp.sql
20261129130504_catalog_price_publication_recorder_v2.sql
20261129130505_settings_wave4a_reschedule_timezone.sql
20261129130506_paid_order_money_v2_read.sql
20261129130507_settings_wave3b_return_reasons_and_payment_preferences.sql
20261129130508_renewal_order_destination_v2.sql
q2_00000000000000_platform_baseline.sql
q2_20260810180001_self_host_actor_auth.sql
q2_20260816140000_acquisition_case_foundation.sql
q2_20261026130000_runtime_capabilities.sql
q2_20261026140000_retained_client_subscription_import.sql
q2_20261028100000_runtime_capability_completion.sql
q2_20261029100000_owner_path_name_resolution.sql
q2_20261103200000_runtime_lock_and_conflict_completion.sql
q2_20261123192500_catalog_publication_authority.sql
qa_00000000000000_platform_baseline.sql
qb_20260810180001_self_host_actor_auth.sql
qb_20260816140000_acquisition_case_foundation.sql
qb_20261026130000_runtime_capabilities.sql
qb_20261026140000_retained_client_subscription_import.sql

Subscription profile receipts

catalog_subscription_profile_receipts stores immutable declarations and their SHA-256 digests under a unique profile key and version. Each row references the pack version that first installed it.

The migration owner can call catalog_subscription_profile_identity(text, integer) to read the exact profile key, version, digest, policy reference and policy digest. The function returns SQL NULL when the pair is absent.