projects
/
pharext
/
pharext.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
9815b77
)
createdb
author
Michael Wallner
<mike@php.net>
Wed, 13 May 2015 15:37:15 +0000
(17:37 +0200)
committer
Michael Wallner
<mike@php.net>
Wed, 13 May 2015 15:37:15 +0000
(17:37 +0200)
config/sql/createdb.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/config/sql/createdb.sh
b/config/sql/createdb.sh
new file mode 100755
(executable)
index 0000000..
6fa1562
--- /dev/null
+++ b/
config/sql/createdb.sh
@@ -0,0
+1,30
@@
+#!/usr/bin/sh
+#
+# run as (postgresql) superuser
+
+psql -e <<EOF
+-- createuser -DRS pharext
+CREATE
+ USER "pharext"
+ NOCREATEDB
+ NOREPLICATION
+ NOSUPERUSER
+;
+
+-- createdb pharext -O pharext -E utf8 -l en_US.utf8
+CREATE
+ DATABASE "pharext"
+ OWNER "pharext"
+ TEMPLATE "template0"
+ ENCODING 'utf8'
+ LC_CTYPE 'en_US.utf8'
+ LC_COLLATE 'en_US.utf8'
+;
+
+\c pharext
+
+CREATE
+ EXTENSION "uuid-ossp"
+;
+
+EOF