diff --git a/composer.json b/composer.json index 88b4a83..40f222d 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "cycle/orm": "^2.0.2", "cycle/schema-migrations-generator": "^2.1", "cycle/schema-renderer": "^1.2", - "cycle/schema-builder": "^2.5", + "cycle/schema-builder": "^2.6", "doctrine/inflector": "^1.4 || ^2.0", "spiral/attributes": "^2.10 || ^3.0", "spiral/framework": "^3.3", diff --git a/src/Bootloader/SchemaBootloader.php b/src/Bootloader/SchemaBootloader.php index 8ed0b71..027762b 100644 --- a/src/Bootloader/SchemaBootloader.php +++ b/src/Bootloader/SchemaBootloader.php @@ -52,6 +52,7 @@ public function __construct( Generator\RenderTables::class, Generator\RenderRelations::class, Generator\RenderModifiers::class, + Generator\ForeignKeys::class, ], self::GROUP_POSTPROCESS => [ // post processing diff --git a/tests/src/Bootloader/SchemaBootloaderTest.php b/tests/src/Bootloader/SchemaBootloaderTest.php index 2e7fb7c..821fadf 100644 --- a/tests/src/Bootloader/SchemaBootloaderTest.php +++ b/tests/src/Bootloader/SchemaBootloaderTest.php @@ -35,7 +35,7 @@ public function testGetsDefaultSchemaGenerators(): void { $generators = $this->bootloader->getGenerators($this->getContainer()->get(CycleConfig::class)); - $this->assertCount(14, $generators); + $this->assertCount(15, $generators); $this->assertContainsOnlyInstancesOf(GeneratorInterface::class, $generators); }