mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-15 18:14:09 -08:00
36 lines
762 B
PHP
36 lines
762 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');
|
||
|
}
|
||
|
}
|