From 4658ca5b063aacb9cafe03f9448230403a7c4d8b Mon Sep 17 00:00:00 2001 From: sammdu Date: Thu, 9 Dec 2021 04:46:12 -0500 Subject: [PATCH] fixed DB ingest issue --- src/main/java/tech/autodirect/api/database/InitDatabase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tech/autodirect/api/database/InitDatabase.java b/src/main/java/tech/autodirect/api/database/InitDatabase.java index cce515c..76f2ed8 100644 --- a/src/main/java/tech/autodirect/api/database/InitDatabase.java +++ b/src/main/java/tech/autodirect/api/database/InitDatabase.java @@ -105,7 +105,7 @@ private static void exitWithHelp(int exitCode) { private static void createCarsTable(Connection conn) throws SQLException { PreparedStatement stmt = conn.prepareStatement( "CREATE TABLE IF NOT EXISTS public.cars (" + - "car_id integer NOT NULL PRIMARY KEY, " + + "car_id serial NOT NULL PRIMARY KEY, " + "brand varchar(50) NOT NULL, " + "model varchar(50) NOT NULL, " + "year integer NOT NULL, " +