feat: CI/CD pipeline setup complete - Ansible playbooks updated, secrets configured, workflow ready

This commit is contained in:
2025-10-31 01:39:24 +01:00
parent 55c04e4fd0
commit e26eb2aa12
601 changed files with 44184 additions and 32477 deletions

View File

@@ -297,11 +297,11 @@ final readonly class AsyncDatabaseAdapter
// Table size (MySQL specific)
$sizeResult = $this->connection->queryOne(
"SELECT
"SELECT
ROUND(((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024), 2) AS size_mb,
DATA_LENGTH,
INDEX_LENGTH
FROM information_schema.TABLES
FROM information_schema.TABLES
WHERE table_schema = DATABASE() AND table_name = ?",
[$table]
);

View File

@@ -398,11 +398,11 @@ final readonly class AsyncDatabaseDecorator implements ConnectionInterface
// Table size (MySQL specific)
$sizeResult = $this->connection->queryOne(
"SELECT
"SELECT
ROUND(((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024), 2) AS size_mb,
DATA_LENGTH,
INDEX_LENGTH
FROM information_schema.TABLES
FROM information_schema.TABLES
WHERE table_schema = DATABASE() AND table_name = ?",
[$table]
);

View File

@@ -23,11 +23,11 @@ final readonly class DatabaseConfigInitializer
$driverConfig = new DriverConfig(
driverType: DriverType::from($this->env->getString(EnvKey::DB_DRIVER, 'pgsql')),
host: $this->env->getString(EnvKey::DB_HOST, 'db'),
port: $this->env->getInt(EnvKey::DB_PORT, 3306),
port: $this->env->getInt(EnvKey::DB_PORT, 5432),
database: $this->env->getRequired(EnvKey::DB_DATABASE),
username: $this->env->getRequired(EnvKey::DB_USERNAME),
password: $this->env->getRequired(EnvKey::DB_PASSWORD),
charset: $this->env->getString(EnvKey::DB_CHARSET, 'utf8mb4'),
charset: $this->env->getString(EnvKey::DB_CHARSET, 'utf8'),
);
$poolConfig = new PoolConfig(

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace App\Framework\Database\Migration;
use App\Framework\Config\AppConfig;
use App\Framework\Database\ConnectionInterface;
use App\Framework\Database\Migration\Services\MigrationDatabaseManager;
use App\Framework\Database\Migration\Services\MigrationErrorAnalyzer;
@@ -43,6 +44,7 @@ final readonly class MigrationRunner
private DatabasePlatform $platform,
private Clock $clock,
private UlidGenerator $ulidGenerator,
private AppConfig $appConfig,
?MigrationTableConfig $tableConfig = null,
?Logger $logger = null,
?OperationTracker $operationTracker = null,
@@ -75,7 +77,8 @@ final readonly class MigrationRunner
$this->validator = new MigrationValidator(
$this->connection,
$this->platform
$this->platform,
$this->appConfig
);
$this->errorAnalyzer = new MigrationErrorAnalyzer();

View File

@@ -56,7 +56,7 @@ final class ReplicationLagDetector
try {
// Check if heartbeat table exists
$tableExists = $replica->queryScalar(
"SELECT COUNT(*) FROM information_schema.tables
"SELECT COUNT(*) FROM information_schema.tables
WHERE table_schema = DATABASE() AND table_name = 'replication_heartbeat'"
);