From ccbdb68bb14ea6692627b3aadc52b00720057103 Mon Sep 17 00:00:00 2001 From: Hanne Nijhuis Date: Sat, 23 Jan 2016 22:05:43 +0100 Subject: [PATCH] Fixed the vendors migration error dealing with unique values --- .../migrations/2016_01_04_175228_create_vendors_table.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/database/migrations/2016_01_04_175228_create_vendors_table.php b/database/migrations/2016_01_04_175228_create_vendors_table.php index b1e3f7b4e8..1295748b08 100644 --- a/database/migrations/2016_01_04_175228_create_vendors_table.php +++ b/database/migrations/2016_01_04_175228_create_vendors_table.php @@ -117,6 +117,10 @@ class CreateVendorsTable extends Migration Schema::table('invoices', function (Blueprint $table) { $table->boolean('has_expenses')->default(false); }); + + Schema::table('payment_terms', function (Blueprint $table) { + $table->unique(array('account_id', 'public_id')); + }); } /**