Skip to content

Commit

Permalink
Update schema.sql
Browse files Browse the repository at this point in the history
add checking if table exists - without it a had errors "customer already exists"
  • Loading branch information
siwekmichal authored Jan 13, 2022
1 parent 4ee2c37 commit 2249e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion complete/src/main/resources/schema.sql
Original file line number Diff line number Diff line change
@@ -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));

0 comments on commit 2249e20

Please sign in to comment.