mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
38 lines
580 B
PHP
38 lines
580 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class AddKitsTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
//
|
|
Schema::create('kits', function ($table) {
|
|
$table->increments('id');
|
|
$table->string('name')->nullable()->default(NULL);
|
|
$table->timestamps();
|
|
$table->engine = 'InnoDB';
|
|
});
|
|
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
//
|
|
Schema::drop('kits');
|
|
|
|
}
|
|
|
|
}
|