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

fdb schema 主键默认值 #6

Closed
JanHuang opened this issue Jun 30, 2016 · 0 comments
Closed

fdb schema 主键默认值 #6

JanHuang opened this issue Jun 30, 2016 · 0 comments

Comments

@JanHuang
Copy link
Member

主键递增,不应该出现默认值.

CREATE TABLE `api_downloads` (
`id` int(11)  NOT NULL DEFAULT "0" AUTO_INCREMENT COMMENT "",
`name` varchar(32)  NOT NULL DEFAULT ""  COMMENT "",
`url_cn` varchar(100)  NOT NULL DEFAULT ""  COMMENT "",
`url_ios` varchar(100)  NOT NULL DEFAULT ""  COMMENT "",
`url_gm` varchar(100)  NOT NULL DEFAULT ""  COMMENT "",
`create_at` int(10)  NOT NULL DEFAULT "0"  COMMENT "",
`update_at` int(10)  NOT NULL DEFAULT "0"  COMMENT "",
PRIMARY KEY (`id`)
) ENGINE InnoDB CHARSET utf8 COMMENT "";
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

1 participant