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