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');
}
}
+1 -1
View File
@@ -26,7 +26,7 @@ SET time_zone = "+00:00";
-- Table structure for table `Moons`
--
CREATE TABLE `moons` (
CREATE TABLE IF NOT EXISTS `moons` (
`id` int(10) NOT NULL,
`System` varchar(10) DEFAULT NULL,
`Planet` varchar(10) DEFAULT NULL,