prepare("INSERT IGNORE INTO accounts (account_code, account_name, account_type, parent_account_code) VALUES (?, ?, ?, ?)"); foreach ($accounts as $account) { $stmt->execute($account); echo "Inserted account: {$account[0]} - {$account[1]}" . PHP_EOL; } echo "Migration 007 completed successfully." . PHP_EOL; } catch (PDOException $e) { die("Migration 007 failed: " . $e->getMessage()); }