1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Changed attach defaults

This commit is contained in:
Hillel Coren 2016-05-29 22:12:26 +03:00
parent da860c0d07
commit 2c56c4e7bf

View File

@ -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') );
});