commit melhorias sgf
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$book='8085';require __DIR__.'/sgf-single-bootstrap.php';$pointer=json_decode(file_get_contents($s['root'].'/fiscal-coverage-installation-pointer.json'),true);$before=json_decode(file_get_contents($pointer['proof']),true)['before'];$checks=[];foreach($before as$connection=>$tables)foreach($tables as$table=>$hash){$db=$connection==='host'?$host:$native;if(hash('sha256',$db->table($table)->orderBy('id')->get()->toJson())!==$hash)throw new LogicException('Changed '.$table);$checks[]=$connection.'.'.$table;}
|
||||
file_put_contents($work.'/fiscal-coverage-preservation.json',json_encode(['passed'=>true,'identical_tables'=>$checks,'journals'=>$native->table('gl_journals')->count(),'business_commands'=>0,'cache_cleared'=>false],JSON_PRETTY_PRINT));echo json_encode(['passed'=>true,'proof'=>$work.'/fiscal-coverage-preservation.json']).PHP_EOL;
|
||||
Reference in New Issue
Block a user