mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
Merge branch 'fix-master-issues-v5' into 'master'
make user_id nullable in payments See merge request mohit.panjvani/crater-web!1326
This commit is contained in:
@ -14,7 +14,7 @@ class AddCustomerIdToPaymentsTable extends Migration
|
|||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('payments', function (Blueprint $table) {
|
Schema::table('payments', function (Blueprint $table) {
|
||||||
$table->unsignedBigInteger('user_id')->nullable();
|
$table->unsignedBigInteger('user_id')->nullable()->change();
|
||||||
$table->unsignedBigInteger('customer_id')->nullable();
|
$table->unsignedBigInteger('customer_id')->nullable();
|
||||||
$table->foreign('customer_id')->references('id')->on('customers');
|
$table->foreign('customer_id')->references('id')->on('customers');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user