Add new flag / flag_out logick
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace console\controllers;
|
||||
|
||||
use common\models\Card;
|
||||
use Yii;
|
||||
use yii\console\Controller;
|
||||
use common\models\Ticket;
|
||||
@@ -16,12 +17,17 @@ use yii\helpers\Html;
|
||||
use common\models\Subscriber;
|
||||
|
||||
class TicketController extends Controller {
|
||||
|
||||
public function actionIndex() {
|
||||
$connection = \Yii::$app->db;
|
||||
$command = $connection->createCommand ( Ticket::$SQL_UPDATE );
|
||||
|
||||
$command = $connection->createCommand ( Card::$SQL_CLEARS_STATUS_DOOR );
|
||||
$result = $command->execute ();
|
||||
\Yii::info ( "Tickets updated flag door: " . $result );
|
||||
|
||||
$command = $connection->createCommand ( Ticket::$SQL_UPDATE );
|
||||
$result = $command->execute ();
|
||||
\Yii::info ( "Tickets updated: " . $result );
|
||||
echo "Tickets updated: " . $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user