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/FlavorText.pm

    r350 r406  
    77=head1 NAME 
    88 
    9 Vee::Schema::FlavorText - DBIC class for the C<flavortext> table 
     9Vee::Schema::FlavorText - DBIC class for the C<flavor_text> table 
    1010 
    1111=cut 
    1212 
    1313__PACKAGE__->load_components('Core'); 
    14 __PACKAGE__->table('flavortext'); 
    15 __PACKAGE__->add_columns(qw/ pokeid generation text /); 
     14__PACKAGE__->table('flavor_text'); 
     15__PACKAGE__->add_columns(qw/ pokemon_id generation text /); 
    1616 
    17 __PACKAGE__->belongs_to(pokemon => 'Vee::Schema::Pokemon', 'pokeid'); 
     17__PACKAGE__->belongs_to(pokemon => 'Vee::Schema::Pokemon', 'pokemon_id'); 
    1818 
    1919=head1 SEE ALSO