
应为数据库表的结构被缓存了。删除runtime文件夹或者执行
//清理指定表结构缓存数据Yii::$app->db->getSchema()->refreshTableSchema('{{%post}}');//这里post是出去表前缀的表名//清理所有表结构缓存数据Yii::$app->db->getSchema()->refresh();完成!
学习教程推荐:yii框架

应为数据库表的结构被缓存了。删除runtime文件夹或者执行
//清理指定表结构缓存数据Yii::$app->db->getSchema()->refreshTableSchema('{{%post}}');//这里post是出去表前缀的表名//清理所有表结构缓存数据Yii::$app->db->getSchema()->refresh();完成!
学习教程推荐:yii框架

2023-03-10
0万阅读

2023-02-26
0万阅读

2023-02-13
10万阅读

2023-02-12
12万阅读

2023-02-11
9万阅读

2023-02-04
9万阅读

2023-01-18
5万阅读

2023-01-16
1万阅读

2023-01-16
2万阅读

2023-01-08
6万阅读

2023-03-10
0万阅读

2023-02-26
0万阅读

2023-02-13
10万阅读

2023-02-12
12万阅读

2023-02-11
9万阅读

2023-02-04
9万阅读

2023-01-18
5万阅读

2023-01-16
1万阅读

2023-01-16
2万阅读

2023-01-08
6万阅读