Hi
I got a problem with PyPlanet, when I use the Local Record app the console just crash and same with mania karma but don't really care of this one,
The error :
INFO [Main][pyplanet.core.management.commands.start] Initiated configuration and environment...
INFO [Main][pyplanet.core.management.commands.start] -------------------------------[ PyPlanet v0.6.3 ]-------------------------------
INFO [MainThread][pyplanet.god.process] Starting pool process for 'default'...
INFO [default][root] Database connection established!
WARNING [default][pyplanet.core.db.migrator] Can't migrate pyplanet.apps.contrib.local_records.migrations.000_make_player_map_unique: (1061, "Nom de clef 'localrecord_player_id_map_id' déjà utilisé")
ERROR [default][pyplanet.core.instance] (1061, "Nom de clef 'localrecord_player_id_map_id' déjà utilisé")
"déja utilisé" mean already used
Does anyone get an idea?
Thanks
PyPlanet bug local record
Moderators: TheM, toffe, NADEO
- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
Re: PyPlanet bug local record
Hi,
You have duplicates in the maps table that needs to be removed first. You can do so with the following database query (execute it with MySQL CLI or PHPMyAdmin on the right database).
After executing this query, try to restart PyPlanet and the migration will succeed.
You have duplicates in the maps table that needs to be removed first. You can do so with the following database query (execute it with MySQL CLI or PHPMyAdmin on the right database).
Code: Select all
DELETE l1 FROM localrecord l1
INNER JOIN
localrecord l2
WHERE
l1.id < l2.id AND l1.map_id = l2.map_id;
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller
Re: PyPlanet bug local record
Where do I need to type that because I entered this in the database and that doesn't work, do I need to execute it in a special place ?
Re: PyPlanet bug local record
Nvm, I deleted all the index of local record and that just worked
Discord: MosKi#4531
Who is online
Users browsing this forum: No registered users and 1 guest