table('plugin_account_msms'); $table->hasColumn('unid') || $table->renameColumn('uuid', 'unid')->update(); // 用户表增加密码字段 $table = $this->table('plugin_account_user'); $table->hasColumn('password') || $table->addColumn('password', 'string', [ 'limit' => 32, 'default' => '', 'null' => true, 'after' => 'nickname', 'comment' => '登录密码' ])->update(); } }