added prices table
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user