header:navbar e footer
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-19 13:07:16 +02:00
parent 3ca67a53c1
commit 14ad2f60c5
34 changed files with 1631 additions and 410 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace App\Support;
use Illuminate\Support\Facades\DB;
final class IsolatedQaDatabase
{
public static function allowsSchemaChanges(): bool
{
$connection = config('database.connections.pgsql');
if (! app()->environment('testing') || config('database.default') !== 'pgsql'
|| ! in_array($connection['host'], ['127.0.0.1', 'localhost'], true)
|| (string) $connection['port'] !== '55441' || ! empty($connection['url'])
|| ! str_ends_with($connection['database'], '_test')) {
return false;
}
$identity = DB::selectOne('SELECT current_database() AS database, inet_server_port() AS port');
return $identity->database === $connection['database'] && (int) $identity->port === 55441;
}
}