Closed giacomomasseron closed 8 months ago
15.3.0
10.47
8.1.2
MySQL 8.0.30 installed with Laragon on Windows
The default cashier migrations do not create foreign key in "subscription_items" to "subscriptions" table.
The problem seems here, file 2019_05_03_000003_create_subscription_items_table.php:
2019_05_03_000003_create_subscription_items_table.php
$table->foreignId('subscription_id');
composer create-project laravel/laravel laravel-cashier cd .\laravel-cashier\ composer require laravel/cashier php artisan vendor:publish --tag="cashier-migrations" php artisan migrate
This method doesn't creates a foreign key. It's name might be a bit misleading but it just creates an unsigned column: https://laravel.com/docs/11.x/migrations#column-method-foreignId
Cashier Stripe Version
15.3.0
Laravel Version
10.47
PHP Version
8.1.2
Database Driver & Version
MySQL 8.0.30 installed with Laragon on Windows
Description
The default cashier migrations do not create foreign key in "subscription_items" to "subscriptions" table.
The problem seems here, file
2019_05_03_000003_create_subscription_items_table.php
:$table->foreignId('subscription_id');
Steps To Reproduce