Hello again and sorry for the double posts,
I solved this problem and other similars changing the keys for some teams in the data files (id for Spara Praha was spartapraha instead of praha, the same for St.Petersburg, and so on).
But now, taking a look at the logs, I realised that some world cities have problems in the format of the txt, so I tried to solved it, but it seems that the task is taking me too much time. I don't know really what is the problem, the import just stops importing this line and other similar:
Pex̌awar|Pishōr|Pishāwar [Peshawar|Pekhawar], 1_218_773, m:1.8m ## Khyber Pakhtunkhwa
h, Hovedstaden [Greater Copenhagen|Capital Region], Hillerød, 2_561 km², 1_714_486 ## use h - why? why not? in common use?
sj, Sjælland [Zealand], Sorø, 7_273 km², 817_907 ## use sl - why? why not? in common use?
I could avoid the error commenting or deleting these lines, but for sure this is not a solution. Any ideas?
Also, I've tried to use the prebuilt db in 2014 and then importing the new Champions League data using:
sportdb --dbname football.db update --include 'europe-champions-league'
I tried importing all the data and got this error:
*** error: SQLite3::ConstraintException: NOT NULL constraint failed: persons.country_id: INSERT INTO "persons" ("key", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?)
Then, I deleted the previous data, up to 2013-2014 competition, and the problem I'm facing is this one, which I have no idea how to tackle it:
[info] parsing data (fixture) 'europe-champions-league!/2013-14/cl' (europe-champions-league/2013-14/cl.yml)...
*** [DEPRECATED] old event config format w/ yaml, please use new plain text format >europe-champions-league/2013-14/cl.yml<
[info] build_title_table_for - deprecated API - use TitleMapper.new instead
[warn] !!!! no round match found for date 2013-09-19T12:00:00+00:00
*** error: 70277522327500 is out of range for ActiveRecord::Type::Integer with limit 4
Any clues about how to continue?
Thank you