remove spaces from password

This commit is contained in:
akosse
2020-01-24 11:04:48 +03:00
parent 3daeae0293
commit eb09f95ff8
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
namespace console\controllers;
use Yii;
use yii\console\Controller;
class SqlController extends Controller
{
public function actionSalary()
{
$sql = "UPDATE user_card SET salary=REPLACE( `salary`, ' ', '' )";
Yii::$app->db->createCommand($sql)->execute();
}
}