diff --git a/src/main/java/fr/tetelie/crawler/DatabaseConfig.java b/src/main/java/fr/tetelie/crawler/DatabaseConfig.java index 1417797..e98af9b 100644 --- a/src/main/java/fr/tetelie/crawler/DatabaseConfig.java +++ b/src/main/java/fr/tetelie/crawler/DatabaseConfig.java @@ -56,7 +56,7 @@ public class DatabaseConfig { public void updateAllPrices() { String selectQuery = "SELECT id, link FROM products"; - String insertQuery = "INSERT INTO price_history (product_id, price, date_check) VALUES (?, ?, CURRENT_TIMESTAMP)"; + String insertQuery = "INSERT INTO price_history (product_id, price, checked_at) VALUES (?, ?, CURRENT_TIMESTAMP)"; try (PreparedStatement selectStmt = connection.prepareStatement(selectQuery); ResultSet rs = selectStmt.executeQuery()) {