Open Ariyatep-zz opened 7 years ago
edit php to require with absolute path and rename folder from 'DBFToMySQL' to be lower case.
I use this script but I need to adjust many things to make it usable such as numeric insert or null data.
Adding a line to dbf-import.php fixes it for me: #6
@include "classes/XBase/Memo.php";
@ethaizone Can you share your adjustments? I'm especially interested in a fix for null data in dates.
I use this script but I need to adjust many things to make it usable such as numeric insert or null data.
@DanielvV Thank you. I'll try. I fix for null data in date by SET GLOBAL sql_mode=''; in mysql.
@Ariyatep , FYI: I created a fork for testing and personal use. There I implemented and edited some of the old import_dbf() function into import_dbf_to_mysql() That fixed the null data for me (changes it to january first, 1970), and support for logical fields (L). Some other changes:
+1 https://github.com/doofpot/DBFToMySQL/pull/6 is needed for XBase\Memo.
When i run php dbf-import.php, it say: php Fatal error: Uncaught Error: Class 'XBase\Memo' not found ...