2018-10-19 07:30:25 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2021-06-10 13:15:52 -07:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
2018-10-19 07:30:25 -07:00
|
|
|
|
2021-06-10 13:15:52 -07:00
|
|
|
class AddKitsTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
Schema::create('kits', function ($table) {
|
2018-10-19 07:30:25 -07:00
|
|
|
$table->increments('id');
|
2021-06-10 13:15:52 -07:00
|
|
|
$table->string('name')->nullable()->default(null);
|
2018-10-19 07:30:25 -07:00
|
|
|
$table->timestamps();
|
|
|
|
$table->engine = 'InnoDB';
|
|
|
|
});
|
2021-06-10 13:15:52 -07:00
|
|
|
}
|
2018-10-19 07:30:25 -07:00
|
|
|
|
2021-06-10 13:15:52 -07:00
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
Schema::drop('kits');
|
|
|
|
}
|
2018-10-19 07:30:25 -07:00
|
|
|
}
|