mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-19 20:14:09 -08:00
37 lines
763 B
PHP
Executable file
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');
|
|
}
|
|
|
|
}
|