For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > January 2006 > cvs: phpdoc /scripts/iniupdate update_db.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /scripts/iniupdate update_db.php
Nuno Lopes

2006-01-09, 8:02 pm

nlopess Mon Dec 26 10:36:06 2005 EDT

Modified files:
/phpdoc/scripts/iniupdate update_db.php
Log:
fix bug: it was updating all releases always, instead of only new ones

http://cvs.php.net/viewcvs.cgi/phpd...4&diff_format=u
Index: phpdoc/scripts/iniupdate/update_db.php
diff -u phpdoc/scripts/iniupdate/update_db.php:1.3 phpdoc/scripts/iniupdate/update_db.php:1.4
--- phpdoc/scripts/iniupdate/update_db.php:1.3 Sun Dec 25 21:01:16 2005
+++ phpdoc/scripts/iniupdate/update_db.php Mon Dec 26 10:36:05 2005
@@ -26,8 +26,8 @@
}

$olddata = sqlite_fetch_all(sqlite_query($idx, 'SELECT * FROM changelog'), SQLITE_ASSOC);
-$columns = array_keys($olddata[0]);
-$columns_str = implode(',', $columns);
+$columns = $olddata[0];
+$columns_str = implode(',', array_keys($columns));

sqlite_query($idx, 'DROP TABLE changelog; VACUUM;');

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com