WordPress.org

Make WordPress Core

Changeset 18531


Ignore:
Timestamp:
08/11/11 04:42:59 (4 years ago)
Author:
nbachiyski
Message:

Add filters for install/upgrade queries, so that unit tests installer can force creating InnoDB tables, so that we can use transactions to revert the database to its initial state after each test. See #17749

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r18522 r18531  
    13831383        if ('' == $queries[count($queries) - 1]) array_pop($queries); 
    13841384    } 
     1385    $queries = apply_filters( 'dbdelta_queries', $queries ); 
    13851386 
    13861387    $cqueries = array(); // Creation Queries 
     
    14031404        } 
    14041405    } 
     1406    $cqueries = apply_filters( 'dbdelta_create_queries', $cqueries ); 
     1407    $iqueries = apply_filters( 'dbdelta_insert_queries', $iqueries ); 
    14051408 
    14061409    // Check to see which tables and fields exist 
Note: See TracChangeset for help on using the changeset viewer.