summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-06-28 11:42:23 +0200
committerBart Visscher <bartv@thisnet.nl>2013-06-28 11:42:23 +0200
commit6145e617185e24919eaf6e94dddeb3b3be735b8c (patch)
treec0f949f902ea8dbe135142a226870c5498958204 /lib/db.php
parent74016666c114236b354c6aa7fe3ec2c854a72e9b (diff)
downloadnextcloud-server-6145e617185e24919eaf6e94dddeb3b3be735b8c.tar.gz
nextcloud-server-6145e617185e24919eaf6e94dddeb3b3be735b8c.zip
Remove deadcode
Diffstat (limited to 'lib/db.php')
-rw-r--r--lib/db.php24
1 files changed, 0 insertions, 24 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 );
- }
}
/**