Working on credit_number_counter

This commit is contained in:
Hillel Coren 2017-08-18 12:56:55 +03:00
parent a3522081da
commit f2ea4a1669
2 changed files with 13 additions and 5 deletions

View File

@ -21,6 +21,11 @@ class IncreasePrecision extends Migration
$table->decimal('cost', 15, 4)->change();
$table->decimal('qty', 15, 4)->change();
});
Schema::table('clients', function ($table) {
$table->integer('credit_number_counter')->default(1)->nullable();
});
}
/**
@ -30,6 +35,8 @@ class IncreasePrecision extends Migration
*/
public function down()
{
//
Schema::table('clients', function ($table) {
$table->dropColumn('credit_number_counter');
});
}
}

File diff suppressed because one or more lines are too long