Schneller und stabiler bei Updates (0.45.0) #67

Merged
friloo merged 2 commits from feature/speed-update-safety into main 2026-09-28 14:57:41 +00:00
3 changed files with 10 additions and 1 deletions
Showing only changes of commit 7142bb608a - Show all commits

1
.gitignore vendored
View file

@ -24,6 +24,7 @@
/storage/.version
/storage/.update-progress
/storage/.maintenance
/storage/.maintenance-*
# Laufzeitzustand der Installation – nie ausliefern (ein manuelles Update würde sonst fällige Migrationen überspringen)
/storage/.migrations-fingerprint
/storage/.background-heartbeat

View file

@ -1 +0,0 @@
{"since":1790606319,"until":1790606319}

View file

@ -3,6 +3,7 @@
namespace Tests;
use App\Plugins\PluginState;
use App\Support\Update\MaintenanceFlag;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Illuminate\Testing\TestResponse;
@ -16,6 +17,14 @@ abstract class TestCase extends BaseTestCase
return parent::createApplication();
}
protected function setUp(): void
{
parent::setUp();
// Wartungsmodus und Update-Zeiträume nie im echten storage/ – und je Test frisch
$this->app->instance(MaintenanceFlag::class, new MaintenanceFlag(sys_get_temp_dir().'/inhaus-test-'.bin2hex(random_bytes(4)).'.maintenance'));
}
/**
* Props einer Startseiten-Kachel (oder null, wenn sie nicht angezeigt wird).
*