Yii Framework extension for simplification of code generation when creating migrations. In development. Not ready.
Add file EMigrateCodegenCommand.php to your extenstions dir and add in config/console.php this code:
<?php
return array(
...
'commandMap' => array(
'migrate' => array(
'class' => 'ext.migrate-codegen.EMigrateCodegenCommand' //alias for added file EMigrateCommand
)
),
...
);
Example for create table:
./yiic migrate create create_table_my_cool_table_name
Example for create table:
./yiic migrate create add_column_my_cool_column_name_in_my_cool_table_name