From c744c629189cc8d2550933959a1b8fdc447f77a7 Mon Sep 17 00:00:00 2001 From: brendt Date: Tue, 10 Mar 2026 14:00:46 +0100 Subject: [PATCH 1/3] wip --- .../http/src/Session/Installer/DatabaseSessionInstaller.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/http/src/Session/Installer/DatabaseSessionInstaller.php b/packages/http/src/Session/Installer/DatabaseSessionInstaller.php index 77aef47079..291bdf1c2e 100644 --- a/packages/http/src/Session/Installer/DatabaseSessionInstaller.php +++ b/packages/http/src/Session/Installer/DatabaseSessionInstaller.php @@ -43,9 +43,7 @@ public function install(): void $this->publishImports(); if ($migration && $this->shouldMigrate()) { - $this->migrationManager->executeUp( - migration: $this->container->get(to_fqcn($migration, root: root_path())), - ); + $this->migrationManager->up(); } } From 6c74ed09e52530ae1440aa678ae750853eebaa20 Mon Sep 17 00:00:00 2001 From: brendt Date: Tue, 10 Mar 2026 14:03:18 +0100 Subject: [PATCH 2/3] wip --- .../http/src/Session/Installer/DatabaseSessionInstaller.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/http/src/Session/Installer/DatabaseSessionInstaller.php b/packages/http/src/Session/Installer/DatabaseSessionInstaller.php index 291bdf1c2e..e535c4bc52 100644 --- a/packages/http/src/Session/Installer/DatabaseSessionInstaller.php +++ b/packages/http/src/Session/Installer/DatabaseSessionInstaller.php @@ -11,9 +11,7 @@ use Tempest\Core\PublishesFiles; use Tempest\Database\Migrations\MigrationManager; -use function Tempest\root_path; use function Tempest\src_path; -use function Tempest\Support\Namespace\to_fqcn; final class DatabaseSessionInstaller implements Installer { From 60d5f165547bed5148995eb5c742630ea0190376 Mon Sep 17 00:00:00 2001 From: brendt Date: Tue, 10 Mar 2026 14:16:31 +0100 Subject: [PATCH 3/3] wip --- .../http/src/Session/Installer/DatabaseSessionInstaller.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/http/src/Session/Installer/DatabaseSessionInstaller.php b/packages/http/src/Session/Installer/DatabaseSessionInstaller.php index e535c4bc52..316131f883 100644 --- a/packages/http/src/Session/Installer/DatabaseSessionInstaller.php +++ b/packages/http/src/Session/Installer/DatabaseSessionInstaller.php @@ -6,7 +6,6 @@ use Tempest\Console\Console; use Tempest\Console\Input\ConsoleArgumentBag; -use Tempest\Container\Container; use Tempest\Core\Installer; use Tempest\Core\PublishesFiles; use Tempest\Database\Migrations\MigrationManager; @@ -21,7 +20,6 @@ final class DatabaseSessionInstaller implements Installer public function __construct( private readonly MigrationManager $migrationManager, - private readonly Container $container, private readonly Console $console, private readonly ConsoleArgumentBag $consoleArgumentBag, ) {} @@ -50,7 +48,7 @@ private function shouldMigrate(): bool $argument = $this->consoleArgumentBag->get('migrate'); if ($argument === null || ! is_bool($argument->value)) { - return $this->console->confirm('Do you want to execute migrations?', default: false); + return $this->console->confirm('Do you want to execute migrations?'); } return (bool) $argument->value;