archibalduk wrote: Thu Jan 28, 2021 7:55 pm
ideawithoutamind wrote: Tue Jan 12, 2021 10:53 pm
This would help with creating /exporting / editing. I've found many times the IDs get a bit wonky if you are adding new rows in certain tables via spreaddsheet only, even after you use the validate UUID tool. Creating the rows in the editor, exporting and editing the spreadsheet leads to cleaner data inputs to the dbs.
Thanks!
Could you give an example of the steps to take in order to reproduce this ID issue?
Sorry for the delay! I can send you some screenshots, but a simple re-creation in the club competition section (I think this happens in other tables as well)
Create a brand new league via editor GUI. League 0, Check UID: 1206474 (correct next number)
Import 3 leagues via spreadsheet.
League 1 UID: 1206475 (increased from the new league I made manually)
League 2 UID: 1206475 (same ID)
League 3 UID: 1206475 (same ID)
Will repeat no matter how many leagues you add.
Manually create a new league in GUI, League 4 UID: 1206475 (same as spreadsheet import UIDs)
Jump to teams, add a manual team: 1206476 (increments correctly, but now it's definitely way off sync)
Add (10 teams via spreadsheet), all UIDs: 1206477
I use the validator from time to time, but I think with all of the UID's being different at that point, it's really thrown off. I've started from scratch several times that way whenever things get wonky). Porting leagues from one db to another can be tedious, if I want to add batch leagues, teams, arenas, etc
My work around has been to create a bunch of incremental leagues manually via the GUI (or whichever table it is), incremental like league1, league2, league3, league4, so the editor manually adds the correct UID, then when i use the spreadsheet, I can just export, take the items I just created, and then rename/copy the data i wanted to the manually created IDs. ie. Export Clubs table. Filter everything except the new manually created items club1-40, fill in the New Long Name with the desired info and copy/paste everything else from the original spreadsheet I created.