We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc6ab9c commit fba6dc4Copy full SHA for fba6dc4
src/Schema/Builder.php
@@ -256,11 +256,8 @@ public function register_custom_tables_names() {
256
* @return array<mixed> A list of each creation or update result.
257
*/
258
public function up( $force = false ) {
259
- try {
260
- $this->db::table( 'posts' )->select ( 1 )->limit( 1 )->get();
261
- } catch ( \Exception $e ) {
262
- // Let's not try to create the tables on a blog that's missing the basic ones.
263
- return [];
+ if ( ! is_blog_installed() || wp_installing() ) {
+ return;
264
}
265
266
$results = [];
0 commit comments