From bee257965475b73668cc54aeda8b42129b34cf29 Mon Sep 17 00:00:00 2001 From: Roberto Guido Date: Sat, 30 Dec 2023 17:31:28 +0100 Subject: [PATCH] fix tabella fatture --- .../migrations/2018_01_27_204523_create_invoices_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/database/migrations/2018_01_27_204523_create_invoices_table.php b/code/database/migrations/2018_01_27_204523_create_invoices_table.php index 4cabc412..d3405648 100644 --- a/code/database/migrations/2018_01_27_204523_create_invoices_table.php +++ b/code/database/migrations/2018_01_27_204523_create_invoices_table.php @@ -18,7 +18,7 @@ public function up() $table->enum('status', ['pending', 'to_verify', 'verified', 'payed'])->default('pending'); $table->decimal('total', 6, 2)->default(0); $table->decimal('total_vat', 6, 2)->default(0); - $table->integer('payment_id')->unsigned()->default(0); + $table->integer('payment_id')->nullable(); $table->text('notes')->nullable(); $table->foreign('supplier_id')->references('id')->on('suppliers')->onDelete('cascade');