3 * Manually run an SQL patch outside of the general updaters.
4 * This ensures that the DB options (charset, prefix, engine) are correctly set.
10 require_once 'commandLine.inc';
11 require_once "$IP/maintenance/updaters.inc";
14 foreach( $args as $arg ) {
18 archive( "patch-$arg.sql" ),
20 foreach( $files as $file ) {
21 if( file_exists( $file ) ) {
27 echo "Could not find $arg\n";
31 echo "Run an SQL file into the DB, replacing prefix and charset vars.\n";
33 echo " php maintenance/patchSql.php file1.sql file2.sql ...\n";
35 echo "Paths in maintenance/archive are automatically expanded if a local file isn't found.\n";