CC-3557: Airtime database install should specify UTF8 as the database encoding

This commit is contained in:
Martin Konecny 2012-03-29 17:10:04 -04:00
parent 5b65b56b93
commit f6d52d271e
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ class AirtimeInstall
$database = $CC_CONFIG['dsn']['database'];
$username = $CC_CONFIG['dsn']['username'];
#$command = "echo \"CREATE DATABASE $database OWNER $username\" | su postgres -c psql 2>/dev/null";
$command = "su postgres -c \"createdb $database --owner $username\"";
$command = "su postgres -c \"createdb $database --encoding UTF8 --owner $username\"";
@exec($command, $output, $results);
if ($results == 0) {