Changeset 426


Ignore:
Timestamp:
May 11, 2008, 1:50:06 AM (9 years ago)
Author:
dom
Message:

ignore tables that aren't Wiki::Toolkit tables

Location:
wiki-toolkit/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/Changes

    r425 r426  
    1010          some code
    1111        Fix uninitialized warnings in feed tests
     12        Fix database setup to ignore tables that aren't Wiki::Toolkit tables
    1213
    13140.74    9  June 2007
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Setup/MySQL.pm

    r345 r426  
    165165}
    166166
    167 # Internal method - what tables are defined?
     167# Internal method - what Wiki::Toolkit tables are defined?
    168168sub fetch_tables_listing {
    169169        my $dbh = shift;
     
    174174    my %tables;
    175175    while ( my $table = $sth->fetchrow_array ) {
    176         $tables{$table} = 1;
     176        exists $create_sql{$table} and $tables{$table} = 1;
    177177    }
    178178        return %tables;
  • wiki-toolkit/trunk/lib/Wiki/Toolkit/Setup/Pg.pm

    r317 r426  
    189189    my %tables;
    190190    while ( my $table = $sth->fetchrow_array ) {
    191         $tables{$table} = 1;
     191        exists $create_sql{$table} and $tables{$table} = 1;
    192192    }
    193193
Note: See TracChangeset for help on using the changeset viewer.