Difference between #30 and #31 of
Yii v2 snippet guide

Revision #31 has been created by rackycz on Sep 20, 2019, 10:15:27 AM with the memo:

db
« previous (#30) next (#32) »

Changes

Title unchanged

Yii v2 for beginners

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2

Content changed

[...]
CREATE TABLE IF NOT EXISTS `user` (
`id` INT NOT NULL AUTO_INCREMENT,
`username` VARCHAR(45) NOT NULL,
`password` VARCHAR(60) NOT NULL,
  `authKey`  VARCHAR(60),
 
PRIMARY KEY (`id`)) ENGINE = InnoDB; INSERT INTO `user` (`id`, `username`, `password`, `authKey`) VALUES (NULL, 'user01', '0497fe4d674fe37194a6fcb08913e596ef6a307f', NULL);
```

If you must use MyISAM instead of InnoDB, just change the word InnoDB into MYISAM.

Then use GII to generate model, views and controller. The GII URL will probably be
[...]
7 0
4 followers
Viewed: 275 350 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a year ago
Update Article

Revisions

View all history