This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user