[vhffs-dev] [1168] Databases are now owned by its owner ;-) |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1168
Author: gradator
Date: 2008-03-01 01:11:23 +0000 (Sat, 01 Mar 2008)
Log Message:
-----------
Databases are now owned by its owner ;-)
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Robots/Pgsql.pm
Modified: trunk/vhffs-api/src/Vhffs/Robots/Pgsql.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Pgsql.pm 2008-02-29 18:33:55 UTC (rev 1167)
+++ trunk/vhffs-api/src/Vhffs/Robots/Pgsql.pm 2008-03-01 01:11:23 UTC (rev 1168)
@@ -65,8 +65,8 @@
if( defined $pg )
{
- $db->do('CREATE DATABASE '.$pg->get_dbname.' ENCODING \''.$pg->get_dbencoding.'\'' );
$db->do('CREATE USER '.$pg->get_dbusername.' WITH PASSWORD ?', undef, $pg->get_dbpassword);
+ $db->do('CREATE DATABASE '.$pg->get_dbname.' OWNER '.$pg->get_dbusername.' ENCODING \''.$pg->get_dbencoding.'\'' );
$pg->set_status( Vhffs::Constants::ACTIVATED );
$pg->commit;
$pg->blank_password;