Skip to content

Commit 07da306

Browse files
mrerbergtshemsedinov
authored andcommitted
Update install.sql
Add conditions to drop table and user only if they exist
1 parent 20bb95a commit 07da306

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

JavaScript/db/install.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
DROP DATABASE example;
1+
DROP DATABASE IF EXISTS example;
2+
DROP USER IF EXISTS marcus;
23
CREATE USER marcus WITH PASSWORD 'marcus';
34
CREATE DATABASE example OWNER marcus;
5+

0 commit comments

Comments
 (0)