diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-06-28 11:42:23 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-06-28 11:42:23 +0200 |
commit | 6145e617185e24919eaf6e94dddeb3b3be735b8c (patch) | |
tree | c0f949f902ea8dbe135142a226870c5498958204 | |
parent | 74016666c114236b354c6aa7fe3ec2c854a72e9b (diff) | |
download | nextcloud-server-6145e617185e24919eaf6e94dddeb3b3be735b8c.tar.gz nextcloud-server-6145e617185e24919eaf6e94dddeb3b3be735b8c.zip |
Remove deadcode
-rw-r--r-- | lib/db.php | 24 | ||||
-rw-r--r-- | lib/db/mdb2schemareader.php | 3 | ||||
-rw-r--r-- | lib/db/schema.php | 3 |
3 files changed, 0 insertions, 30 deletions
diff --git a/lib/db.php b/lib/db.php index 9e5bd2d99b3..0fa487dedb3 100644 --- a/lib/db.php +++ b/lib/db.php @@ -376,18 +376,6 @@ class OC_DB { public static function createDbFromStructure( $file ) { self::connectDoctrine(); return OC_DB_Schema::createDbFromStructure(self::$DOCTRINE, $file); - /* FIXME: use CURRENT_TIMESTAMP for all databases. mysql supports it as a default for DATETIME since 5.6.5 [1] - * as a fallback we could use <default>0000-01-01 00:00:00</default> everywhere - * [1] http://bugs.mysql.com/bug.php?id=27645 - * http://dev.mysql.com/doc/refman/5.0/en/timestamp-initialization.html - * http://www.postgresql.org/docs/8.1/static/functions-datetime.html - * http://www.sqlite.org/lang_createtable.html - * http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions037.htm - */ - if( $CONFIG_DBTYPE == 'pgsql' ) { //mysql support it too but sqlite doesn't - $content = str_replace( '<default>0000-00-00 00:00:00</default>', - '<default>CURRENT_TIMESTAMP</default>', $content ); - } } /** @@ -405,18 +393,6 @@ class OC_DB { throw $e; } return $result; - /* FIXME: use CURRENT_TIMESTAMP for all databases. mysql supports it as a default for DATETIME since 5.6.5 [1] - * as a fallback we could use <default>0000-01-01 00:00:00</default> everywhere - * [1] http://bugs.mysql.com/bug.php?id=27645 - * http://dev.mysql.com/doc/refman/5.0/en/timestamp-initialization.html - * http://www.postgresql.org/docs/8.1/static/functions-datetime.html - * http://www.sqlite.org/lang_createtable.html - * http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions037.htm - */ - if( $CONFIG_DBTYPE == 'pgsql' ) { //mysql support it too but sqlite doesn't - $content = str_replace( '<default>0000-00-00 00:00:00</default>', - '<default>CURRENT_TIMESTAMP</default>', $content ); - } } /** diff --git a/lib/db/mdb2schemareader.php b/lib/db/mdb2schemareader.php index 19d0ba4d4ea..702482b569f 100644 --- a/lib/db/mdb2schemareader.php +++ b/lib/db/mdb2schemareader.php @@ -26,9 +26,6 @@ class OC_DB_MDB2SchemaReader { foreach($xml->children() as $child) { switch($child->getName()) { case 'name': - $name = (string)$child; - $name = str_replace( '*dbname*', self::$DBNAME, $name ); - break; case 'create': case 'overwrite': case 'charset': diff --git a/lib/db/schema.php b/lib/db/schema.php index 3d5b404825a..fa053c64ef0 100644 --- a/lib/db/schema.php +++ b/lib/db/schema.php @@ -7,9 +7,6 @@ */ class OC_DB_Schema { - private static $DBNAME; - private static $DBTABLEPREFIX; - /** * @brief saves database scheme to xml file * @param \Doctrine\DBAL\Connection $conn |