mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 06:29:47 -08:00
37 lines
763 B
PHP
37 lines
763 B
PHP
|
<?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');
|
||
|
}
|
||
|
|
||
|
}
|