mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-06-16 15:01:08 +03:00
making descriptions optional
This commit is contained in:
parent
67bdc628e7
commit
25848a26c0
|
@ -46,9 +46,9 @@ class Minion_Task_Db_Generate extends Minion_Task
|
|||
*/
|
||||
public function execute(array $config)
|
||||
{
|
||||
if (empty($config['group']) OR empty($config['description']))
|
||||
if (empty($config['group']))
|
||||
{
|
||||
return 'Please provide --group and --description'.PHP_EOL.
|
||||
return 'Please provide --group'.PHP_EOL.
|
||||
'See help for more info'.PHP_EOL;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
|
||||
<?php if(!empty($description)): ?>
|
||||
/**
|
||||
* <?php echo $description.PHP_EOL; ?>
|
||||
*/
|
||||
<?php endif; ?>
|
||||
class <?php echo $class; ?> extends Minion_Migration_Base {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue