diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-09-01 16:49:29 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-09-01 16:49:29 +0200 |
commit | 6d48f3fab8c19b2f2b0986c294d45449e47025ea (patch) | |
tree | b315dde5409eb76d079c8edfa68c4dace61bd773 /lib/db.php | |
parent | 0fa254508d85dad079845c53b5b5c13c0ada6740 (diff) | |
download | nextcloud-server-6d48f3fab8c19b2f2b0986c294d45449e47025ea.tar.gz nextcloud-server-6d48f3fab8c19b2f2b0986c294d45449e47025ea.zip |
we still need this for pgsql
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php index de72dee2554..884bbb5e905 100644 --- a/lib/db.php +++ b/lib/db.php @@ -405,11 +405,12 @@ class OC_DB { * 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 ); } - */ + file_put_contents( $file2, $content ); // Try to create tables |