initdb 脚本问题
unsciorg opened this issue · 3 comments
unsciorg commented
- 删除字段或者表后,索引会自动删除
所以建议把脚本的删除索引命令去掉
http://dev.mysql.com/doc/refman/5.6/en/alter-table.html
If columns are dropped from a table, the columns are also removed from
any index of which they are a part. If all columns that make up an
index are dropped, the index is dropped as well.
- 脚本报错Specified key was too long; max key length is 3072 bytes原因不明
mysql 5..7
innodb
utf-8
think-gem commented
ok,谢谢你的意见。这是erm生成的脚本,因为需要多次生成,都是通用配置,没有针对某个数据库进行优化。发布正式版时会完善脚本。
unsciorg commented
# maven ignore
target/
*.jar
*.war
*.zip
*.tar
*.tar.gz
# eclipse ignore
.settings/
.project
.classpath
# idea ignore
.idea/
*.ipr
*.iml
*.iws
# temp ignore
*.log
*.cache
*.diff
*.patch
*.tmp
# system ignore
.DS_Store
Thumbs.db
顺便提供一份.gitignore文件。
think-gem commented
谢谢