add card.flag implementation
This commit is contained in:
21
console/controllers/TicketController.php
Normal file
21
console/controllers/TicketController.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace console\controllers;
|
||||
|
||||
use Yii;
|
||||
use common\models;
|
||||
use yii\console\Controller;
|
||||
use common\models\Ticket;
|
||||
|
||||
class TicketController extends Controller{
|
||||
|
||||
|
||||
public function actionIndex()
|
||||
{
|
||||
$connection = \Yii::$app->db;
|
||||
$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