Fixes #3632 and #3817 - set archived to default 0 so imported assets will be included in expiring reports

This commit is contained in:
snipe 2017-08-03 16:04:47 -07:00
parent 7c4ee54f8b
commit 7adfab9d9f

View file

@ -0,0 +1,30 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class SetAssetArchivedToZeroDefault extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('assets', function (Blueprint $table) {
$table->boolean('archived')->default(0)->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}