应为数据库表的结构被缓存了。删除runtime文件夹或者执行
//清理指定表结构缓存数据 Yii::$app->db->getSchema()->refreshTableSchema('{{%post}}');//这里post是出去表前缀的表名 //清理所有表结构缓存数据 Yii::$app->db->getSchema()->refresh();
完成!
上一篇:vscode中html中文乱码的解决方法
下一篇:composer安装的方法有哪些