-
Notifications
You must be signed in to change notification settings - Fork 34
Migration files are broken L5.2 #30
Comments
Hi, I've the same problem using the package in laravel 5.2.45. My solution was to remove the "Table" suffix from the migration class names. "CreateGeonamesNamesTable" becomes "CreateGeonamesNames" and so on. After that i can migrate the tables. Hopefully this helps you :) Best, |
@elpado I have made my own package. It is so much nicer, faster and more complete. I had to wait 15 hours to import DBs using this package, my package does it in 30min. Also it can update the entries without deleting them. (but it does not fetch daily files, I think it is silly that geonames provide a file for only 1 day before) https://github.com/yurtesen/geonames/ |
@yurtesen Great to here that. I now used your package cause the performance is impressive. Unfortunately the geonames db is new to me. How can I search for countries in the appropriate user language with your package to realize a autocompletion? |
@elpado if you have problems with my package please open an issue in my repository. Your question is too generic. But if I understand you correctly, you want to fetch list of country names in X language. There are at least 2 ways to do this. 1- You get a list of geoname_id values from GeonamesCountryInfo then use GeonamesAlternateName to extract them in a certain language 2- Use GeonamesGeoname table to search for entries with feature code PCLI to get country geoname_id values then fetch the names in a language you want. You should be able to use model relations to get a reasoanble query. But if you can't manage it, please open an issue in my package and make a more detailed explanation of your problem with an exact example. In either case, I am not sure if geonames have complete list of all country names in every language. You may have missing countries in some languages if geonames is missing variables and you may have to implement workarounds for it...just a friendly warning :) Under normal circumstances you should be able to follow the wiki entry about typeahead in my package for hints. (there are other wiki pages with examples) |
@yurtesen You're absolutely right, my question does not belongs to here. My mistake :( But thanks for your help, I think now I've understood how I must use it. I hope geonames covers the main languages for which my project is planned for (French, English, German, Spanish). Otherwise I would have to work with a fallback language or some other type of workaround. Nevertheless, thanks for the note :) For further questions I will open an issue on your repo. Best, |
I tested this and I am getting some duplicate names because some countries have multiple names in a language in alternateNames table ( there are historical names, preferred names etc. ). |
Well there are 2 problems:
1- The file names are like '2013_11_28_170337_create_geonames_names.php' but the class name inside the file is 'CreateGeonamesNamesTable'. Either the file name should be '2013_11_28_170337_create_geonames_names_table.php' or the class name should be 'CreateGeonamesNames'
Otherwise it just gives error:
2- The composer dumpautoload is giving errors about duplicate migration files.
I found the same problem mentioned in another issue but removing the classmap from vendor/ipalaus/geonames/composer.json did not help.
Any ideas on when you will fix these and make a release?
Thanks!
The text was updated successfully, but these errors were encountered: