The referral_commissions migration FK-referenced 'orders' and 'invoices' tables, but neither is ever created by any migration in the codebase. MariaDB silently accepted the FKs (checks disabled during migration), Postgres rejects strictly. Changed both columns to plain nullable unsignedBigInteger — same column shape, no FK constraint. Data still references orders/invoices by id via application logic. Proper FKs can be added in a follow-up migration once orders/invoices migrations land. Co-Authored-By: Virgil <virgil@lethean.io> |
||
|---|---|---|
| .. | ||
| 0001_01_01_000001_create_commerce_tables.php | ||
| 0001_01_01_000002_create_credit_notes_table.php | ||
| 0001_01_01_000003_create_payment_methods_table.php | ||
| 2026_01_26_000000_create_usage_billing_tables.php | ||
| 2026_01_26_000001_create_exchange_rates_table.php | ||
| 2026_01_26_000001_create_referral_tables.php | ||
| 2026_01_29_000001_create_webhook_events_table.php | ||