Asset action log table

This commit is contained in:
snipe
2013-11-18 21:10:30 -05:00
parent edbf195034
commit 981ff2b6e5
@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
class CreateAssetLogsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('asset_logs', function($table)
{
$table->increments('id');
$table->integer('user_id');
$table->string('action_type');
$table->integer('asset_id');
$table->integer('checkedout_to')->nullable;
$table->integer('location_id')->nullable;
$table->timestamp('added_on');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('asset_logs');
}
}