fix query
This commit is contained in:
@@ -9,10 +9,13 @@ class Provision extends BaseController
|
|||||||
|
|
||||||
public function prepareProvision(): string
|
public function prepareProvision(): string
|
||||||
{
|
{
|
||||||
|
log_message('critical', "***** ***** prepareProvision :: Starting Port Allocation ");
|
||||||
$this->allocatePortNo(); // allocte port for the conyainer use
|
$this->allocatePortNo(); // allocte port for the conyainer use
|
||||||
|
|
||||||
|
log_message('critical', "***** ***** prepareProvision :: Starting Product Database if Needed ");
|
||||||
$this->prepareDataBase(); // allocte port for the conyainer use
|
$this->prepareDataBase(); // allocte port for the conyainer use
|
||||||
|
|
||||||
|
log_message('critical', "***** ***** prepareProvision :: Starting Port Provisioning ");
|
||||||
$this->updateProvision();
|
$this->updateProvision();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@@ -35,6 +38,7 @@ class Provision extends BaseController
|
|||||||
$mysql = "SELECT id, member_id, uid, internal_url,product_id,status,provision_port,updated
|
$mysql = "SELECT id, member_id, uid, internal_url,product_id,status,provision_port,updated
|
||||||
FROM members_products
|
FROM members_products
|
||||||
WHERE db_status = 0 AND product_id IN ('A000004','A000003')
|
WHERE db_status = 0 AND product_id IN ('A000004','A000003')
|
||||||
|
AND provision_status = 0
|
||||||
ORDER BY updated ASC LIMIT ".$list_limit;
|
ORDER BY updated ASC LIMIT ".$list_limit;
|
||||||
|
|
||||||
$query = $this->db->query($mysql);
|
$query = $this->db->query($mysql);
|
||||||
|
|||||||
Reference in New Issue
Block a user