File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,14 @@ protected function getTableData($table)
103103    protected  function  makePath ($ path
104104    {
105105        $ delDIRECTORY_SEPARATOR ;
106-         $ dir  $ del 
106+         $ dir'' ;
107107        $ directoriesexplode ($ del$ path
108-         foreach  ($ directoriesas  $ key$ directory
109-             $ dir$ directory
110-             if (!is_dir ($ dir
108+          foreach  ($ directoriesas  $ key$ directory
109+             if (!empty ($ directory
110+                 $ dir$ del$ directory
111+             if (!is_dir ($ dir
111112                @mkdir ($ dir
112-             }
113-         }
113+             }   
114114    }
115115
116116    /** 
Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ public function write()
4343        }
4444
4545        $ schema$ this compile ();
46-         $ filenamedate ('Y_m_d_His ' ) . "_create_ "  . $ this database  . "_database.php " ;
47-         static ::$ filePathget ('db-exporter.export_path.migrations ' ) . "/ {$ filename ;
46+         $ absolutePathget ('db-exporter.export_path.migrations ' );
47+         $ this makePath ($ absolutePath
48+         $ this filename  = date ('Y_m_d_His ' ) . "_create_ "  . $ this database  . "_database.php " ;
49+         static ::$ filePath$ absolutePath"/ {$ this filename }" ;
4850        file_put_contents (static ::$ filePath$ schema
4951
5052        return  static ::$ filePath
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments