mirror of
https://github.com/flarum/framework.git
synced 2025-02-02 15:10:45 +08:00
parent
7092b3bfff
commit
d6632c061d
|
@ -25,6 +25,8 @@ class DatabaseServiceProvider extends AbstractServiceProvider
|
|||
$this->app->singleton('flarum.db', function () {
|
||||
$factory = new ConnectionFactory($this->app);
|
||||
|
||||
$dbConfig = $this->app->config('database');
|
||||
$dbConfig['engine'] = 'InnoDB';
|
||||
$connection = $factory->make($this->app->config('database'));
|
||||
$connection->setEventDispatcher($this->app->make('Illuminate\Contracts\Events\Dispatcher'));
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ abstract class Migration
|
|||
'up' => function (Builder $schema) use ($name, $definition) {
|
||||
$schema->create($name, function (Blueprint $table) use ($schema, $definition) {
|
||||
$definition($table);
|
||||
$table->engine = 'InnoDB';
|
||||
|
||||
static::fixIndexNames($schema, $table);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user