]> source.dussan.org Git - nextcloud-server.git/commitdiff
convert 0000-00-00 00:00:00 to CURRENT_TIMESTAMP when setting up db on oracle
authorJörn Friedrich Dreyer <jfd@butonic.de>
Fri, 2 Aug 2013 11:06:35 +0000 (13:06 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Fri, 2 Aug 2013 11:06:35 +0000 (13:06 +0200)
lib/db.php

index 4e4de888e4a12b03b0a131dea55fa8e4dfbc86c5..cc4ca804144b3874b2f5f71028187430519527ef 100644 (file)
@@ -536,7 +536,7 @@ class OC_DB {
                 * 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
+               if( $CONFIG_DBTYPE === 'pgsql' || $CONFIG_DBTYPE === 'oci' ) { //mysql support it too but sqlite doesn't
                        $content = str_replace( '<default>0000-00-00 00:00:00</default>',
                                '<default>CURRENT_TIMESTAMP</default>', $content );
                }