convertToDDL( $db ); // write the differences to a file: $diffSchema->writeToFile( 'array', 'differences.php' ); // apply the differences to the database: $diffSchema->applyToDB( $db ); ?>