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')); + }); } /**