jianyan74 / rageframe Goto Github PK
View Code? Open in Web Editor NEW基于 Yii2 的应用开发引擎
Home Page: http://rageframe.com
License: Other
基于 Yii2 的应用开发引擎
Home Page: http://rageframe.com
License: Other
wechat_rule_keyword
把 content字段改到长度为150就可以了,不知道楼主有没有遇到这个问题 mysql 5.6.39
D:\wwwServer\projectWeb\rageframe>php yii migrate/up
Yii Migration Tool (based on Yii v2.0.14.2)
Total 7 new migrations to be applied:
m180307_012101_wechat_rule_keyword
m180307_012101_wechat_rule_keyword_stat
m180307_012101_wechat_rule_stat
m180307_012101_wechat_setting
m180307_012101_wxapp_account
m180307_012101_wxapp_general_analysis
m180307_012101_wxapp_versions
Apply the above migrations? (yes|no) [no]:yes
*** applying m180307_012101_wechat_rule_keyword
> execute SQL: SET foreign_key_checks = 0 ... done (time: 0.002s)
> create table {{%wechat_rule_keyword}} ... done (time: 0.284s)
> create index idx_content on {{%wechat_rule_keyword}} (content) ...Exceptio
n 'yii\db\Exception' with message 'SQLSTATE[42000]: Syntax error or access viola
tion: 1071 Specified key was too long; max key length is 767 bytes
The SQL being executed was: ALTER TABLE `yl_wechat_rule_keyword` ADD INDEX `idx_
content` (`content`)'
in D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\db\Schema.php:664
Error Info:
Array
(
[0] => 42000
[1] => 1071
[2] => Specified key was too long; max key length is 767 bytes
)
Stack trace:
#0 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\db\Command.php(1263): y
ii\db\Schema->convertException(Object(PDOException), 'ALTER TABLE `yl...')
#1 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\db\Command.php(1075): y
ii\db\Command->internalExecute('ALTER TABLE `yl...')
#2 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\db\Migration.php(495):
yii\db\Command->execute()
#3 D:\wwwServer\projectWeb\rageframe\console\migrations\m180307_012101_wechat_ru
le_keyword.php(25): yii\db\Migration->createIndex('idx_content', '{{%wechat_rule
_...', 'content', 0)
#4 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\console\controllers\Bas
eMigrateController.php(725): m180307_012101_wechat_rule_keyword->up()
#5 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\console\controllers\Bas
eMigrateController.php(199): yii\console\controllers\BaseMigrateController->migr
ateUp('m180307_012101_...')
#6 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(
0)
#7 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\base\InlineAction.php(5
7): call_user_func_array(Array, Array)
#8 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\base\Controller.php(157
): yii\base\InlineAction->runWithParams(Array)
#9 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\console\Controller.php(
148): yii\base\Controller->runAction('up', Array)
#10 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\base\Module.php(528):
yii\console\Controller->runAction('up', Array)
#11 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\console\Application.ph
p(180): yii\base\Module->runAction('migrate/up', Array)
#12 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\console\Application.ph
p(147): yii\console\Application->runAction('migrate/up', Array)
#13 D:\wwwServer\projectWeb\rageframe\vendor\yiisoft\yii2\base\Application.php(3
86): yii\console\Application->handleRequest(Object(yii\console\Request))
#14 D:\wwwServer\projectWeb\rageframe\yii(29): yii\base\Application->run()
#15 {main}
这是特色第六条,可以我在文档里面没有找到任何关于权限菜单的添加,我自己部署后,发现后台也没有权限管理的菜单
使用你们的框架是不是还得自己去购买H+的版权?
感觉这个项目特别棒,安装好跑起来,进入个人中心时,页面报错common_provinces表缺失(我自己已经按数据字典创建了这张表,并从网上找了行政区数据)
如果能把这张表补充到数据迁移文件中就太好了,加油
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.