summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/db.php24
-rw-r--r--lib/db/mdb2schemareader.php3
-rw-r--r--lib/db/schema.php3
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