owncloud/core — pull request #5725 by butonic (2013-11-06 17:41:56+00:00)
Title: fix enabling apps for oracle - cornercase

Installing ownCloud on an oracle database is possible when using username, password, host AND database name (which becomes the SID). Later the dba might decide to give you username, password and an SID. no database name. Because that is fetched in the background by resolving oci8://username:password@SID with a lookup in the tnsnames.ora. Welcome to oracle hell.

If you haven't noticed by now ... the database name in ownclouds config.php is ''. This causes any attempt to change the database schema to fail because 'A database needs a name!'. No more autmagic migration, no app installations.

This PR fixes that by using the username as the database name (which is valid for oracle ... google it if you don't believe me).

@karlitschek @DeepDiver1975 I need this because it fixes a customer setup. Please review thoroughly!