diff --git a/bin/docker-phinx.sh b/bin/docker-phinx.sh index 4b38c03..4b04535 100755 --- a/bin/docker-phinx.sh +++ b/bin/docker-phinx.sh @@ -1,3 +1,3 @@ #!/bin/sh -docker exec colossus-php ./vendor/bin/phinx "$@" +docker exec colossus-php ./vendor/bin/phinx $@ diff --git a/db/migrations/20230923020649_add_tests_table.php b/db/migrations/20230923020649_add_tests_table.php index 5206cb2..c61cc97 100644 --- a/db/migrations/20230923020649_add_tests_table.php +++ b/db/migrations/20230923020649_add_tests_table.php @@ -14,7 +14,7 @@ final class AddTestsTable extends AbstractMigration { ->addTimestamps() ->create(); - $table = $this->table('test_benchmark'); + $table = $this->table('benchmark_test'); $table->addColumn('test_id', 'integer', ['null' => false]) ->addColumn('benchmark_id', 'integer', ['null' => false]) ->addForeignKey('test_id', 'tests', 'id', ['delete'=> 'CASCADE', 'update'=> 'CASCADE']) diff --git a/src/Controllers/ComponentController.php b/src/Controllers/ComponentController.php index 0036576..05720a1 100644 --- a/src/Controllers/ComponentController.php +++ b/src/Controllers/ComponentController.php @@ -32,7 +32,7 @@ class ComponentController extends Controller { $component = Component::where('id', $args['component_id'])->first(); $view = Twig::fromRequest($request); - return $view->render($response, 'components/view.twig', [ + return $view->render($response, 'component/view.twig', [ 'component' => $component, ]); }