Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
V2EX
›
PHP
lavarel 用 db migrate 建表的时候整型字段只能用 11 位?
yakczh
·
Apr 28, 2014
· 2747 views
This topic created in 4394 days ago, the information mentioned may be changed or developed.
https://github.com/laravel/laravel/issues/2212#issuecomment-21608193
$table->integer('publish_sex', 1)->default(0);// 性别
$table->integer('publish_num', 2)->()->default(1);// 人数
这样会报错
第二个参数只能写成false, 但这样生成的sql字段长度是11位整型
table
publish
integer
1 replies
•
2014-04-29 12:31:38 +08:00
1
kukat
Apr 29, 2014
$table->tinyInteger('length_1')
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
3058 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 39ms ·
UTC 14:12
·
PVG 22:12
·
LAX 07:12
·
JFK 10:12
♥ Do have faith in what you're doing.
❯