How does yii migrate/create create files?

1. View ./yii migrate/create --help

2. Enter the command to create the file: php yii migrate/create insert_data_to_by_platform_message_template

Example: Create a data table: php yii migrate/create create_reward_table

 3. After creating the file successfully, edit the file content

 4. Execute commands to operate database data: php yii migrate

Guess you like

Origin blog.csdn.net/hechenhongbo/article/details/122060518