diff --git a/spring-content-jpa/src/main/resources/org/springframework/content/jpa/schema-h2.sql b/spring-content-jpa/src/main/resources/org/springframework/content/jpa/schema-h2.sql index df3536942..2dd5be824 100644 --- a/spring-content-jpa/src/main/resources/org/springframework/content/jpa/schema-h2.sql +++ b/spring-content-jpa/src/main/resources/org/springframework/content/jpa/schema-h2.sql @@ -1,2 +1,2 @@ -CREATE TABLE BLOBS (id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1), content BLOB, PRIMARY KEY ( id )) -ALTER TABLE BLOBS ALTER COLUMN id VARCHAR(36) \ No newline at end of file +CREATE TABLE IF NOT EXISTS BLOBS (id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1), content BLOB, PRIMARY KEY ( id )); +ALTER TABLE BLOBS ALTER COLUMN id VARCHAR(36); \ No newline at end of file