Skip to content

Yii Framework extension for simplification of code generation when creating migrations

Notifications You must be signed in to change notification settings

fornit1917/yii-migrate-codegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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

About

Yii Framework extension for simplification of code generation when creating migrations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages