@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | ) { |
81 | 81 | parent::__construct($app, $repository, $config, $filesystem); |
82 | 82 | $this->setName('migration:create') |
83 | - ->setDescription('Create a new migration'); |
|
83 | + ->setDescription('Create a new migration'); |
|
84 | 84 | |
85 | 85 | $this->addArgument('name', 'name of migration', null, false, true); |
86 | 86 | } |
@@ -158,26 +158,3 @@ discard block |
||
158 | 158 | private function getTemplateClass(): string |
159 | 159 | { |
160 | 160 | return <<<EOF |
161 | - <?php |
|
162 | - namespace Platine\Framework\Migration; |
|
163 | - |
|
164 | - use Platine\Framework\Migration\AbstractMigration; |
|
165 | - |
|
166 | - class %classname% extends AbstractMigration |
|
167 | - { |
|
168 | - |
|
169 | - public function up(): void |
|
170 | - { |
|
171 | - //Action when migrate up |
|
172 | - |
|
173 | - } |
|
174 | - |
|
175 | - public function down(): void |
|
176 | - { |
|
177 | - //Action when migrate down |
|
178 | - |
|
179 | - } |
|
180 | - } |
|
181 | - EOF; |
|
182 | - } |
|
183 | -} |
@@ -73,7 +73,7 @@ |
||
73 | 73 | ) { |
74 | 74 | parent::__construct($app, $config, $filesystem); |
75 | 75 | $this->setName('migration:exec') |
76 | - ->setDescription('Command to execute only one seed at a time'); |
|
76 | + ->setDescription('Command to execute only one seed at a time'); |
|
77 | 77 | |
78 | 78 | $this->addOption('-n|--name', 'the seed name', null, false, true); |
79 | 79 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | ) { |
82 | 82 | parent::__construct($app, $config, $filesystem); |
83 | 83 | $this->setName('seed:create') |
84 | - ->setDescription('Create a new seed'); |
|
84 | + ->setDescription('Create a new seed'); |
|
85 | 85 | |
86 | 86 | $this->addArgument('name', 'name of seed', null, false, true); |
87 | 87 | } |
@@ -157,20 +157,3 @@ discard block |
||
157 | 157 | private function getTemplateClass(): string |
158 | 158 | { |
159 | 159 | return <<<EOF |
160 | - <?php |
|
161 | - namespace Platine\Framework\Migration\Seed; |
|
162 | - |
|
163 | - use Platine\Framework\Migration\Seed\AbstractSeed; |
|
164 | - |
|
165 | - class %classname% extends AbstractSeed |
|
166 | - { |
|
167 | - |
|
168 | - public function run(): void |
|
169 | - { |
|
170 | - //Action when run the seed |
|
171 | - |
|
172 | - } |
|
173 | - } |
|
174 | - EOF; |
|
175 | - } |
|
176 | -} |
@@ -71,7 +71,7 @@ |
||
71 | 71 | ) { |
72 | 72 | parent::__construct($app, $config, $filesystem); |
73 | 73 | $this->setName('seed:status') |
74 | - ->setDescription('Show your database seeds status'); |
|
74 | + ->setDescription('Show your database seeds status'); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |