mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-25 11:38:41 +00:00
improve country handling
This commit is contained in:
parent
8a1ab7fe6b
commit
62350c7a2e
|
|
@ -29,6 +29,16 @@
|
|||
"name": "country_numeric",
|
||||
"type": "INT(11)",
|
||||
"null": false
|
||||
},
|
||||
"country_region": {
|
||||
"name": "country_region",
|
||||
"type": "VARCHAR(15)",
|
||||
"null": true
|
||||
},
|
||||
"country_developed": {
|
||||
"name": "country_developed",
|
||||
"type": "TINYINT",
|
||||
"null": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ final class Installer extends InstallerAbstract
|
|||
$con = $dbPool->get();
|
||||
|
||||
$query = new Builder($con);
|
||||
$query->insert('country_name', 'country_code2', 'country_code3', 'country_numeric')
|
||||
$query->insert('country_name', 'country_code2', 'country_code3', 'country_numeric', 'country_region', 'country_developed')
|
||||
->into('country');
|
||||
|
||||
$querySqlite = new Builder($sqlite);
|
||||
|
|
@ -76,7 +76,9 @@ final class Installer extends InstallerAbstract
|
|||
$country['country_name'] === null ? null : \trim($country['country_name']),
|
||||
$country['country_code2'] === null ? null : \trim($country['country_code2']),
|
||||
$country['country_code3'] === null ? null : \trim($country['country_code3']),
|
||||
$country['country_numeric']
|
||||
$country['country_numeric'],
|
||||
$country['country_region'],
|
||||
(int) $country['country_developed']
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user