From bc0ed8803d431cd96dfd5d9fefaf618e9b51e4dc Mon Sep 17 00:00:00 2001 From: Adam Hosker Date: Fri, 9 Apr 2021 13:13:47 +0100 Subject: [PATCH] Remove MyISAM Requirement (#2442) - Remove Database Engine Default of InnoDB - Remove Hard Coded MyISAM requirement --- .../core/migrations/2015_02_24_000000_create_posts_table.php | 2 -- framework/core/src/Install/DatabaseConfig.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/framework/core/migrations/2015_02_24_000000_create_posts_table.php b/framework/core/migrations/2015_02_24_000000_create_posts_table.php index 16c2a0ae8..47c4bb0f7 100644 --- a/framework/core/migrations/2015_02_24_000000_create_posts_table.php +++ b/framework/core/migrations/2015_02_24_000000_create_posts_table.php @@ -30,8 +30,6 @@ return [ $table->integer('hide_user_id')->unsigned()->nullable(); $table->unique(['discussion_id', 'number']); - - $table->engine = 'MyISAM'; }); $connection = $schema->getConnection(); diff --git a/framework/core/src/Install/DatabaseConfig.php b/framework/core/src/Install/DatabaseConfig.php index 479da0406..89ac46ed5 100644 --- a/framework/core/src/Install/DatabaseConfig.php +++ b/framework/core/src/Install/DatabaseConfig.php @@ -47,7 +47,7 @@ class DatabaseConfig implements Arrayable 'collation' => 'utf8mb4_unicode_ci', 'prefix' => $this->prefix, 'strict' => false, - 'engine' => 'InnoDB', + 'engine' => null, 'prefix_indexes' => true ]; }