tablename;$hashes[$name]=Illuminate\Support\Facades\DB::selectOne('SELECT md5(COALESCE(string_agg(md5(row_to_json(t)::text),\'\' ORDER BY row_to_json(t)::text),\'\')) AS hash FROM "'.str_replace('"','""',$name).'" t')->hash;} file_put_contents(__DIR__.'/BASELINE-QA.json',json_encode(['target'=>$target,'tables'=>$hashes],JSON_PRETTY_PRINT));echo json_encode(['tables'=>count($hashes),'read_only'=>true,'target'=>$target]);