added prices table

This commit is contained in:
2018-10-23 22:32:19 -05:00
parent b294e2d645
commit deb0fd6c13
5 changed files with 39 additions and 6 deletions
@@ -0,0 +1,35 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePricesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('prices', function (Blueprint $table) {
$table->increments('id');
$table->text('Name');
$table->integer('ItemId');
$table->decimal('Price', 20, 2);
$table->string('Time');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('prices');
}
}