|
|
@@ -61,6 +61,8 @@ class InitController extends Controller
|
|
|
{
|
|
|
$sql = "ALTER TABLE xhGhsItemClass ADD shopId INT NOT NULL DEFAULT 0 COMMENT '门店id' AFTER sjId;";
|
|
|
Yii::$app->db->createCommand($sql)->execute();
|
|
|
+ $sql = "ALTER TABLE xhAdminRole ADD shopId INT NOT NULL DEFAULT 0 COMMENT '门店id' AFTER `sjId`;";
|
|
|
+ Yii::$app->db->createCommand($sql)->execute();
|
|
|
|
|
|
$list = SjClass::getAllByCondition(['id>' => 0], null, '*', null, true);
|
|
|
if (!empty($list)) {
|