Skip to content

Commit

Permalink
Add "IF NOT EXISTS" clause in H2 database initialization (#2040)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioArena87 authored Jul 17, 2024
1 parent 6602e26 commit cca9fb4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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)
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);

0 comments on commit cca9fb4

Please sign in to comment.