From 2249e203b3829064487e20a488411dfad8c05747 Mon Sep 17 00:00:00 2001 From: siwekmichal Date: Thu, 13 Jan 2022 11:03:58 +0100 Subject: [PATCH] Update schema.sql add checking if table exists - without it a had errors "customer already exists" --- complete/src/main/resources/schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complete/src/main/resources/schema.sql b/complete/src/main/resources/schema.sql index 5bb5fb0..f32efef 100644 --- a/complete/src/main/resources/schema.sql +++ b/complete/src/main/resources/schema.sql @@ -1 +1 @@ -CREATE TABLE customer (id SERIAL PRIMARY KEY, first_name VARCHAR(255), last_name VARCHAR(255)); +CREATE TABLE IF NOT EXISTS customer (id SERIAL PRIMARY KEY, first_name VARCHAR(255), last_name VARCHAR(255));