Open hmacphail opened 6 years ago
when adding new learnset:
look for learnset in learnsets table... get id or make new one
if learnset not new, look for learnset/pokemon relationship in this table... change generation range if gameId = null else... create 1 entry in this table, for game, pokemon, generation
have to retrieve learnset every time new one is made to get id for this table (maybe on-the-fly within pokemon movesByLevel loop)
Split
learnsets
into two tables. NewpokemonLearnsets
table has 1:M relation with bothlearnsets
andpokemon
tables.gameId
,genId
, andpokemonId
all moved topokemonLearnsets
.