@@ -30,7 +30,7 @@ foreach ($oldEvents as $id => $row) {
|
||||
}
|
||||
}
|
||||
$baseline->exec('ROLLBACK');
|
||||
foreach (['opportunities','opportunity_projects','opportunity_clusters','opportunity_favourites','interest_requests','interest_submission_receipts','investment_messages','tasks','project_locations','cluster_projects'] as $table) {
|
||||
foreach (['opportunities', 'opportunity_projects', 'opportunity_clusters', 'opportunity_favourites', 'interest_requests', 'interest_submission_receipts', 'investment_messages', 'tasks', 'project_locations', 'cluster_projects'] as $table) {
|
||||
$key = '"public"."'.$table.'"';
|
||||
$rows = $pdo->query('SELECT row_to_json(t)::text AS row FROM '.$key.' t ORDER BY row_to_json(t)::text')->fetchAll(PDO::FETCH_COLUMN);
|
||||
$hash = hash('sha256', implode("\n", $rows));
|
||||
|
||||
Reference in New Issue
Block a user