Show
Ignore:
Timestamp:
02/08/08 02:44:39 (2 years ago)
Author:
eevee
Message:

Database refactoring. Renamed columns and tables to be more consistent and more readable. (#58)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/lib/Vee/Bot.pm

    r262 r406  
    7373        my $ability = $schema->resultset('Abilities')->find($hashref->{id}); 
    7474        return sprintf "%s: %s", 
    75             $ability->name, $ability->effect; 
     75            $ability->name, $ability->description; 
    7676 
    7777    } else { 
     
    204204    } 
    205205 
    206     my @pm = $schema->resultset('PokeMoves')->search({ 
    207         pokeid => $pokemon_id, 
    208         moveid => $move_id, 
    209         -nest  => \ "FIND_IN_SET('$ver', version)", 
     206    my @pm = $schema->resultset('PokemonMoves')->search({ 
     207        pokemon_id => $pokemon_id, 
     208        move_id    => $move_id, 
     209        -nest      => \ "FIND_IN_SET('$ver', versions)", 
    210210    }); 
    211211