Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 670 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 670 Bytes

Yii Framework extension for simplification of code generation when creating migrations. In development. Not ready.

Install

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
		)
	),
  ...
);

Usage

Create/Drop table

Example for create table:

./yiic migrate create create_table_my_cool_table_name

Add/Drop column

Example for create table:

./yiic migrate create add_column_my_cool_column_name_in_my_cool_table_name