snipe-it/database/migrations/2013_11_21_002321_add_uploads_table.php
2016-03-25 01:18:05 -07:00

37 lines
763 B
PHP
Executable file

<?php
use Illuminate\Database\Migrations\Migration;
class AddUploadsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('asset_uploads', function ($table) {
$table->increments('id');
$table->integer('user_id')->nullable();
$table->string('filename');
$table->integer('asset_id');
$table->string('filenotes')->nullable();
$table->timestamps();
$table->softDeletes();
$table->engine = 'InnoDB';
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('asset_uploads');
}
}