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