|
|
#1 (permalink) |
|
Major Leagues
Join Date: Aug 2009
Location: San Diego, CA
Posts: 317
Thanked 19x in 15 posts
|
mysql export into next season and beyond?
About to move my league into its second season and I'm curious (afraid) of the mysql export - specifically the players_game_batting, players_game_pitching_stats, and team_record tables. Will these be reset and emptied of the last year's data, or appended to?
My guess is team_record will have to be reset as there is no date column... |
|
|
|
|
|
#4 (permalink) | |
|
Global Moderator
Join Date: May 2002
Posts: 569
Thanked 60x in 43 posts
|
Quote:
Of course, if you have the exports done annually, you won't lose the data since you'll have each season's exports stored in a different folder (named by year). You're only in trouble if you don't export before the next season begins, so I'd recommend setting it to automatically do so if you haven't already. |
|
|
|
|
|
|
#6 (permalink) |
|
Global Moderator
Join Date: May 2002
Posts: 569
Thanked 60x in 43 posts
|
To have the game automatically save each season's mysql (or csv or access) exports, go to the game menu and then choose "game setup" and then click on the "almanac options" tab. Towards the bottom, you'll see the monthly or yearly dumps you can do.
|
|
|
|
|
|
#9 (permalink) | |
|
Hall Of Famer
Join Date: Nov 2002
Posts: 2,724
Thanked 255x in 119 posts
|
Quote:
e.g. team_record -> team_history_record team_batting_stats -> team_history_batting_stats team_pitching_stats -> team_history_pitching_stats ... Note that not all team tables have a corresponding history table
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues Other Mods: 19th Century: Schedules, FaceGen BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds PEBA - Connecticut Nutmeggers Last edited by fhomess; 09-02-2009 at 07:20 PM. |
|
|
|
|
|
|
#10 (permalink) |
|
Hall Of Famer
Join Date: Nov 2002
Posts: 2,724
Thanked 255x in 119 posts
|
You may still need to test what you actually get out of these settings. I haven't looked at this in ages, but I recalled at some point long ago (OOTP8, I think) that the annual dump happens in December. Some of the files in the data dump get reset once the offseason begins a day or two after the last game of the postseason, which would make a December dump lack some of the data you'd want in it. I don't know if OOTPX handles this better or not.
__________________
StatsLab11 - PHP/MySQL based utilities for Online Leagues Other Mods: 19th Century: Schedules, FaceGen BBCards: 1887 Allen & Ginter, 1934 Goudey, 1988 Score, 1996 fhomess, 2005 fhomess FaceGen: 1960-Pres MLB, 32 Colleges, Backgrounds PEBA - Connecticut Nutmeggers |
|
|
|
|
|
#11 (permalink) |
|
Major Leagues
Join Date: Aug 2009
Location: San Diego, CA
Posts: 317
Thanked 19x in 15 posts
|
If I set the Almanac 'Auto data dump options' to 'Monthly data dump to MySQL file' and 'Yearly data dump to MySQL' file do I need to do anything to trigger these dumps (har har har) or will they happen as necessary when I save the game?
|
|
|
|
|
|
#12 (permalink) | |
|
Global Moderator
Join Date: May 2002
Posts: 569
Thanked 60x in 43 posts
|
Quote:
|
|
|
|
|
|
|
#13 (permalink) |
|
Global Moderator
Join Date: May 2002
Posts: 569
Thanked 60x in 43 posts
|
They will occur automatically as the in game time progresses to a new month or a new year.
|
|
|
|
| Thank you for this post: | wellsoliver (09-02-2009) |
|
|
#15 (permalink) |
|
Major Leagues
Join Date: Aug 2009
Location: San Diego, CA
Posts: 317
Thanked 19x in 15 posts
|
Updating--- the manual almanac creation doesn't seem to create the SQL dumps, but when I passed Sept. 30 the dump/ directory was created and the SQL exports generated.
Cool.. |
|
|
|
|
|
#16 (permalink) |
|
Global Moderator
Join Date: May 2002
Posts: 569
Thanked 60x in 43 posts
|
If you want to do a sql dump manually, go to the game menu and choose "database info" and then choose the tools menu/button in the bottom right and you can configure the dump and create it from here at any time.
|
|
|
|
| Thank you for this post: | wellsoliver (09-02-2009) |
|
|
#17 (permalink) |
|
Major Leagues
Join Date: Aug 2009
Location: San Diego, CA
Posts: 317
Thanked 19x in 15 posts
|
Any idea if it's possible to generate mysql dumps historically? It'd be nice to go back and have all the dumps for the months I wasn't generating them to provide historical data.
|
|
|
|
|
|
#18 (permalink) | |
|
Global Moderator
Join Date: May 2002
Posts: 569
Thanked 60x in 43 posts
|
Quote:
Obviously, if you passed into the next year and played out any games, you'll start losing previously played games. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|