Update description
This commit is contained in:
parent
9cea6cee26
commit
32b194ddc7
1 changed files with 1 additions and 4 deletions
|
@ -15,13 +15,12 @@ class FixActionLogTimestamps extends Command
|
||||||
*/
|
*/
|
||||||
protected $signature = 'snipeit:fix-action-log-timestamps {--dryrun : Run the sync process but don\'t update the database}';
|
protected $signature = 'snipeit:fix-action-log-timestamps {--dryrun : Run the sync process but don\'t update the database}';
|
||||||
|
|
||||||
// @todo:
|
|
||||||
/**
|
/**
|
||||||
* The console command description.
|
* The console command description.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $description = 'Command description';
|
protected $description = 'This script attempts to fix timestamps and missing created_by values for bulk checkin entries in the log table';
|
||||||
|
|
||||||
private bool $dryrun = false;
|
private bool $dryrun = false;
|
||||||
|
|
||||||
|
@ -42,8 +41,6 @@ class FixActionLogTimestamps extends Command
|
||||||
// Logs that were improperly timestamped should have created_at in the 1970s
|
// Logs that were improperly timestamped should have created_at in the 1970s
|
||||||
$logs = Actionlog::whereYear('created_at', '1970')->get();
|
$logs = Actionlog::whereYear('created_at', '1970')->get();
|
||||||
|
|
||||||
// @todo: handle created_by being null...
|
|
||||||
|
|
||||||
$this->info('Found ' . $logs->count() . ' logs with incorrect timestamps:');
|
$this->info('Found ' . $logs->count() . ' logs with incorrect timestamps:');
|
||||||
|
|
||||||
$this->table(
|
$this->table(
|
||||||
|
|
Loading…
Add table
Reference in a new issue