we still need this for pgsql
This commit is contained in:
parent
0fa254508d
commit
6d48f3fab8
|
@ -405,11 +405,12 @@ class OC_DB {
|
||||||
* http://www.postgresql.org/docs/8.1/static/functions-datetime.html
|
* http://www.postgresql.org/docs/8.1/static/functions-datetime.html
|
||||||
* http://www.sqlite.org/lang_createtable.html
|
* http://www.sqlite.org/lang_createtable.html
|
||||||
* http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions037.htm
|
* 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' ){ //mysql support it too but sqlite doesn't
|
||||||
$content = str_replace( '<default>0000-00-00 00:00:00</default>', '<default>CURRENT_TIMESTAMP</default>', $content );
|
$content = str_replace( '<default>0000-00-00 00:00:00</default>', '<default>CURRENT_TIMESTAMP</default>', $content );
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
file_put_contents( $file2, $content );
|
file_put_contents( $file2, $content );
|
||||||
|
|
||||||
// Try to create tables
|
// Try to create tables
|
||||||
|
|
Loading…
Reference in New Issue