File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ protected function handle()
1717
1818 $ migrations = function_exists ('AppPaths ' ) ?
1919 glob (getcwd () . DIRECTORY_SEPARATOR . AppPaths ('database ' ) . DIRECTORY_SEPARATOR . '*.yml ' ) :
20- glob (getcwd () . DIRECTORY_SEPARATOR . 'database ' . DIRECTORY_SEPARATOR . '*.yml ' );
20+ glob (getcwd () . DIRECTORY_SEPARATOR . 'app ' . DIRECTORY_SEPARATOR . ' database ' . DIRECTORY_SEPARATOR . '*.yml ' );
2121
2222 foreach ($ migrations as $ migration ) {
2323 $ currentFileName = path ($ migration )->basename ();
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ protected function handle()
1818
1919 $ migrations = function_exists ('AppPaths ' ) ?
2020 glob (getcwd () . DIRECTORY_SEPARATOR . AppPaths ('database ' ) . DIRECTORY_SEPARATOR . '*.yml ' ) :
21- glob (getcwd () . DIRECTORY_SEPARATOR . 'database ' . DIRECTORY_SEPARATOR . '*.yml ' );
21+ glob (getcwd () . DIRECTORY_SEPARATOR . 'app ' . DIRECTORY_SEPARATOR . ' database ' . DIRECTORY_SEPARATOR . '*.yml ' );
2222
2323 if (empty ($ migrations )) {
2424 $ this ->error ("No schema files found. " );
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ protected function handle()
1818
1919 $ migrations = function_exists ('AppPaths ' ) ?
2020 glob (getcwd () . DIRECTORY_SEPARATOR . AppPaths ('database ' ) . DIRECTORY_SEPARATOR . '*.yml ' ) :
21- glob (getcwd () . DIRECTORY_SEPARATOR . 'database ' . DIRECTORY_SEPARATOR . '*.yml ' );
21+ glob (getcwd () . DIRECTORY_SEPARATOR . 'app ' . DIRECTORY_SEPARATOR . ' database ' . DIRECTORY_SEPARATOR . '*.yml ' );
2222
2323 foreach ($ migrations as $ migration ) {
2424 $ currentFileName = path ($ migration )->basename ();
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ protected function handle()
1818
1919 $ migrations = function_exists ('AppPaths ' ) ?
2020 glob (getcwd () . DIRECTORY_SEPARATOR . AppPaths ('database ' ) . DIRECTORY_SEPARATOR . '*.yml ' ) :
21- glob (getcwd () . DIRECTORY_SEPARATOR . 'database ' . DIRECTORY_SEPARATOR . '*.yml ' );
21+ glob (getcwd () . DIRECTORY_SEPARATOR . 'app ' . DIRECTORY_SEPARATOR . ' database ' . DIRECTORY_SEPARATOR . '*.yml ' );
2222
2323 foreach ($ migrations as $ migration ) {
2424 $ currentFileName = path ($ migration )->basename ();
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ protected function handle()
1717
1818 $ seeds = function_exists ('AppPaths ' ) ?
1919 glob (getcwd () . DIRECTORY_SEPARATOR . AppPaths ('database ' ) . DIRECTORY_SEPARATOR . '*.yml ' ) :
20- glob (getcwd () . DIRECTORY_SEPARATOR . 'database ' . DIRECTORY_SEPARATOR . '*.yml ' );
20+ glob (getcwd () . DIRECTORY_SEPARATOR . 'app ' . DIRECTORY_SEPARATOR . ' database ' . DIRECTORY_SEPARATOR . '*.yml ' );
2121
2222 foreach ($ seeds as $ seed ) {
2323 $ currentFileName = path ($ seed )->basename ();
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ protected function handle()
2222
2323 $ file = function_exists ('DatabasePath ' ) ?
2424 getcwd () . DIRECTORY_SEPARATOR . DatabasePath ("$ schema.yml " ) :
25- getcwd () . DIRECTORY_SEPARATOR . 'database ' . DIRECTORY_SEPARATOR . "$ schema.yml " ;
25+ getcwd () . DIRECTORY_SEPARATOR . 'app ' . DIRECTORY_SEPARATOR . ' database ' . DIRECTORY_SEPARATOR . "$ schema.yml " ;
2626
2727 if (!\Leaf \FS \File::exists ($ file )) {
2828 $ this ->error ("$ schema doesn't exist! " );
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ protected function handle()
2626
2727 $ schemaFile = function_exists ('DatabasePath ' ) ?
2828 getcwd () . DIRECTORY_SEPARATOR . DatabasePath ("$ schema.yml " ) :
29- getcwd () . DIRECTORY_SEPARATOR . 'database ' . DIRECTORY_SEPARATOR . "$ schema.yml " ;
29+ getcwd () . DIRECTORY_SEPARATOR . 'app ' . DIRECTORY_SEPARATOR . ' database ' . DIRECTORY_SEPARATOR . "$ schema.yml " ;
3030
3131 if (file_exists ($ schemaFile )) {
3232 $ this ->error ("$ schema already exists " );
@@ -36,7 +36,7 @@ protected function handle()
3636 if (
3737 \Leaf \FS \File::create ($ schemaFile , function () {
3838 return file_get_contents (__DIR__ . '/stubs/schema.stub ' );
39- })
39+ }, [ ' recursive ' => true ] )
4040 ) {
4141 $ this ->comment ("$ schema schema file created successfully! " );
4242 $ this ->generateExtraFiles ($ schema );
You can’t perform that action at this time.
0 commit comments