updating schema for migration

This commit is contained in:
2018-11-05 12:40:03 -06:00
parent f1301fc9d7
commit 4796b593ad
16 changed files with 225 additions and 194 deletions
@@ -13,12 +13,14 @@ class CreateConfigTable extends Migration
*/
public function up()
{
Schema::create('Config', function (Blueprint $table) {
$table->decimal('RentalTax', 5,2);
$table->decimal('AllyRentalTax', 5, 2);
$table->decimal('RefineRate', 5, 2);
$table->integer('RentalTime');
});
if(!Schema::hasTable('Config')) {
Schema::create('Config', function (Blueprint $table) {
$table->decimal('RentalTax', 5,2);
$table->decimal('AllyRentalTax', 5, 2);
$table->decimal('RefineRate', 5, 2);
$table->integer('RentalTime');
});
}
}
/**