简体   繁体   中英

CakePHP-2.0 and Migration plugin: How can i make id column auto_increment?

https://github.com/CakeDC/users/blob/2.0/Config/Migration/001_initialize_users_schema.php#L49

如何使id列为auto_increment?

Change your users table to int, primary key, auto-increment. If you are using the user_details, change the user_id to int too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM