Skip to content

Commit

Permalink
Add ForeignKeys generator (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz authored Nov 23, 2023
1 parent 56f1aa8 commit 09cac59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/Bootloader/SchemaBootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function __construct(
Generator\RenderTables::class,
Generator\RenderRelations::class,
Generator\RenderModifiers::class,
Generator\ForeignKeys::class,
],
self::GROUP_POSTPROCESS => [
// post processing
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Bootloader/SchemaBootloaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 09cac59

Please sign in to comment.