mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -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');
|
|
}
|
|
|
|
}
|