Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置数据库不正确 #13

Open
buptyyf opened this issue Dec 14, 2015 · 5 comments
Open

配置数据库不正确 #13

buptyyf opened this issue Dec 14, 2015 · 5 comments

Comments

@buptyyf
Copy link

buptyyf commented Dec 14, 2015

1、输入php yii migrate --migrationPath=@callmez/wechat/migrations,显示找不到yii文件?
2、用第一种安装方法,会生成一个vendor的文件夹,这个文件夹就是整个工程的文件夹么?之前的yii2-wechat-master文件夹是不是没用了?

@xiaoclub
Copy link

我也是这种情况,并且尝试了将@callmez这段修改为自己的路径,仍然不成功……

@callmez
Copy link
Owner

callmez commented Mar 14, 2016

确定 yii2的app 有安装成功么? 可以截图(文件结构, 命令行执行)给我看下

@xiaoclub
Copy link

迁移wechat模块数据库表目前已经做成功了,但是将yii2\wechat\vendor\callmez\yii2-wechat\migrations\m150217_131752_initWechat.php的文件中的所有表名都手工设定。比如这样:
// $tableName = MessageHistory::tableName();
$tableName = 'MessageHistory';

然而第二个步骤(迁移示例模块数据库表),依然是找不到正确的路径。因为我没找到@app下的modules/example/migrations……
php yii migrate --migrationPath=@app/modules/example/migrations

卡在这两天了……泪奔
@callmez

@callmez
Copy link
Owner

callmez commented Mar 15, 2016

👍

@zhangbenchao
Copy link

PHP Warning: require(/var/www/html/wxzbc/wechat/vendor/yiisoft/yii2/BaseYii.php): failed to open stream: No such file or directory in /var/www/html/wxzbc/wechat/vendor/yiisoft/yii2/Yii.php on line 8这个怎么解决啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants