From 2c56c4e7bf552176d5b9a9893dd81a45205afd00 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 29 May 2016 22:12:26 +0300 Subject: [PATCH] Changed attach defaults --- database/migrations/2016_03_22_168362_add_documents.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/migrations/2016_03_22_168362_add_documents.php b/database/migrations/2016_03_22_168362_add_documents.php index b5e9da2deb1a..29fa07a6cbc1 100644 --- a/database/migrations/2016_03_22_168362_add_documents.php +++ b/database/migrations/2016_03_22_168362_add_documents.php @@ -15,8 +15,8 @@ class AddDocuments extends Migration { $table->unsignedInteger('logo_width'); $table->unsignedInteger('logo_height'); $table->unsignedInteger('logo_size'); - $table->boolean('invoice_embed_documents')->default(1); - $table->boolean('document_email_attachment')->default(1); + $table->boolean('invoice_embed_documents')->default(0); + $table->boolean('document_email_attachment')->default(0); }); \DB::table('accounts')->update(array('logo' => '')); @@ -45,7 +45,7 @@ class AddDocuments extends Migration { $t->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $t->foreign('invoice_id')->references('id')->on('invoices')->onDelete('cascade'); $t->foreign('expense_id')->references('id')->on('expenses')->onDelete('cascade'); - + $t->unique( array('account_id','public_id') ); });