I did
yiic shell "/path/to/my/app"
model *
crud users
I cannot add or update users. I can list them, and delete them. Also I thought I was supposed to see the primary keys.
CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(11) NOT NULL auto_increment,
`user_username` varchar(25) collate latin1_general_ci NOT NULL,
`user_username_clean` varchar(25) collate latin1_general_ci NOT NULL,
`user_password` varchar(64) collate latin1_general_ci NOT NULL,
`user_register_time` int(11) NOT NULL,
`user_code` varchar(15) collate latin1_general_ci NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB;
Probable reason could be DB username/password which you have provided in config/main.php doesn’t have access to modify database. Just making a guess, post more details about the issue to better understand it.