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/Schema/PokemonAbilities.pm

    r350 r406  
    1313__PACKAGE__->load_components('Core'); 
    1414__PACKAGE__->table('pokemon_abilities'); 
    15 __PACKAGE__->add_columns(qw/ pokeid abilityid slot /); 
    16 __PACKAGE__->set_primary_key(qw/ pokeid abilityid /); 
     15__PACKAGE__->add_columns(qw/ pokemon_id ability_id slot /); 
     16__PACKAGE__->set_primary_key(qw/ pokemon_id ability_id /); 
    1717 
    18 __PACKAGE__->belongs_to(pokemon => 'Vee::Schema::Pokemon', 'pokeid'); 
    19 __PACKAGE__->belongs_to(ability => 'Vee::Schema::Abilities', 'abilityid'); 
     18__PACKAGE__->belongs_to(pokemon => 'Vee::Schema::Pokemon', 'pokemon_id'); 
     19__PACKAGE__->belongs_to(ability => 'Vee::Schema::Abilities', 'ability_id'); 
    2020 
    2121=head1 SEE ALSO