Fixed the vendors migration error dealing with unique values

This commit is contained in:
Hanne Nijhuis 2016-01-23 22:05:43 +01:00
parent 12d8659eef
commit ccbdb68bb1

View File

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