remove spaces from password
This commit is contained in:
1 parent
3daeae0293
commit
eb09f95ff8
2 files changed
+23
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user