csad
All checks were successful
Deploy / deploy (push) Successful in 58s

This commit is contained in:
2026-07-31 20:40:25 +02:00
parent f6cb211859
commit db9b02449d
8 changed files with 136 additions and 8 deletions

View File

@@ -61,6 +61,7 @@ final class ProfileSettings
$columnDefinitions = [
'first_name' => 'VARBINARY(512) NULL',
'last_name' => 'VARBINARY(512) NULL',
'street' => 'VARBINARY(512) NULL',
'contact_phone' => 'VARBINARY(512) NULL',
'contact_email' => 'VARBINARY(512) NULL',
'profession' => 'VARBINARY(512) NULL',
@@ -70,6 +71,11 @@ final class ProfileSettings
foreach ($columnDefinitions as $column => $definition) {
if (!$this->hasColumn('user_profiles', $column)) {
if ($column === 'street') {
$this->pdo->exec('ALTER TABLE user_profiles ADD COLUMN street VARBINARY(512) NULL AFTER last_name');
$this->columnCache['user_profiles.street'] = true;
$this->columnTypeCache['user_profiles.street'] = 'varbinary';
}
continue;
}