File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2020use webfiori \framework \cli \helpers \CreateDBAccessHelper ;
2121use webfiori \framework \cli \helpers \CreateFullRESTHelper ;
2222use webfiori \framework \cli \helpers \CreateMiddleware ;
23+ use webfiori \framework \cli \helpers \CreateMigration ;
2324use webfiori \framework \cli \helpers \CreateTableObj ;
2425use webfiori \framework \cli \helpers \CreateThemeHelper ;
2526use webfiori \framework \cli \helpers \CreateWebService ;
@@ -116,7 +117,7 @@ public function exec() : int {
116117 return -1 ;
117118 }
118119 } else if ($ answer == 'Database migration. ' ) {
119- $ create = new \ webfiori \ framework \ cli \ helpers \ CreateMigration ($ this );
120+ $ create = new CreateMigration ($ this );
120121 if ($ create ->isConfigured ()) {
121122 $ create ->writeClass ();
122123 $ writer = $ create ->getWriter ();
Original file line number Diff line number Diff line change @@ -46,11 +46,12 @@ public function __construct(CreateCommand $command) {
4646 parent ::__construct ($ command , new DatabaseMigrationWriter ($ runner ));
4747 $ this ->writer = $ this ->getWriter ();
4848 $ this ->setNamespace ($ ns );
49-
49+
50+ $ this ->isConfigured = true ;
5051 if (!$ command ->isArgProvided ('--defaults ' )) {
5152 $ this ->setClassName ($ command ->readClassName ('Provide an optional name for the class that will have migration logic: ' , null ));
5253 $ this ->readClassInfo ();
53- $ this -> isConfigured = true ;
54+
5455 }
5556 }
5657 }
@@ -71,8 +72,6 @@ private function initRunner($ns, $command) {
7172 } else {
7273 return null ;
7374 }
74- } else {
75- return null ;
7675 }
7776 return new MigrationsRunner ($ path , $ ns , null );
7877 }
You can’t perform that action at this time.
0 commit comments