Added notes to log table
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddNoteToAssetLogsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
//
|
||||
Schema::table('asset_logs', function($table)
|
||||
{
|
||||
$table->text('note')->nullable();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
Schema::table('asset_logs', function($table)
|
||||
{
|
||||
$table->dropColumn('note');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,46 +13,50 @@ class ActionlogSeeder extends Seeder {
|
||||
|
||||
// Pending (status_id is null, assigned_to = 0)
|
||||
$assetlog[] = array(
|
||||
'user_id' => '1',
|
||||
'user_id' => '1',
|
||||
'action_type' => 'checkout',
|
||||
'asset_id' => '1',
|
||||
'checkedout_to' => '3',
|
||||
'location_id' => '3',
|
||||
'added_on' => $date->modify('-10 day'),
|
||||
'asset_type' => 'hardware',
|
||||
'asset_id' => '1',
|
||||
'checkedout_to' => '3',
|
||||
'location_id' => '3',
|
||||
'added_on' => $date->modify('-10 day'),
|
||||
'asset_type' => 'hardware',
|
||||
'note' => NULL,
|
||||
);
|
||||
|
||||
// Pending (status_id is null, assigned_to = 0)
|
||||
$assetlog[] = array(
|
||||
'user_id' => '1',
|
||||
'user_id' => '1',
|
||||
'action_type' => 'checkin from',
|
||||
'asset_id' => '1',
|
||||
'checkedout_to' => '3',
|
||||
'location_id' => NULL,
|
||||
'added_on' => $date->modify('-10 day'),
|
||||
'asset_type' => 'hardware',
|
||||
'asset_id' => '1',
|
||||
'checkedout_to' => '3',
|
||||
'location_id' => NULL,
|
||||
'added_on' => $date->modify('-10 day'),
|
||||
'asset_type' => 'hardware',
|
||||
'note' => NULL,
|
||||
);
|
||||
|
||||
// Pending (status_id is null, assigned_to = 0)
|
||||
$assetlog[] = array(
|
||||
'user_id' => '1',
|
||||
'user_id' => '1',
|
||||
'action_type' => 'checkout',
|
||||
'asset_id' => '1',
|
||||
'checkedout_to' => '3',
|
||||
'location_id' => '3',
|
||||
'added_on' => $date->modify('-10 day'),
|
||||
'asset_type' => 'software',
|
||||
'asset_id' => '1',
|
||||
'checkedout_to' => '3',
|
||||
'location_id' => '3',
|
||||
'added_on' => $date->modify('-10 day'),
|
||||
'asset_type' => 'software',
|
||||
'note' => NULL,
|
||||
);
|
||||
|
||||
// Pending (status_id is null, assigned_to = 0)
|
||||
$assetlog[] = array(
|
||||
'user_id' => '1',
|
||||
'user_id' => '1',
|
||||
'action_type' => 'checkin from',
|
||||
'asset_id' => '1',
|
||||
'checkedout_to' => '3',
|
||||
'location_id' => NULL,
|
||||
'added_on' => $date->modify('-10 day'),
|
||||
'asset_type' => 'software',
|
||||
'asset_id' => '1',
|
||||
'checkedout_to' => '3',
|
||||
'location_id' => NULL,
|
||||
'added_on' => $date->modify('-10 day'),
|
||||
'asset_type' => 'software',
|
||||
'note' => NULL,
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user