aboutsummaryrefslogtreecommitdiffstats
path: root/postgres
diff options
context:
space:
mode:
Diffstat (limited to 'postgres')
-rw-r--r--postgres/init.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/postgres/init.sql b/postgres/init.sql
index ee1acd8d..55bb468f 100644
--- a/postgres/init.sql
+++ b/postgres/init.sql
@@ -1,3 +1,7 @@
+-- The following function is from Stack Overflow
+-- https://stackoverflow.com/questions/18389124/simulate-create-database-if-not-exists-for-postgresql/36218838#36218838
+-- User frankhommers (https://stackoverflow.com/users/971229/frankhommers)
+
DO
$do$
DECLARE