예제 #1
0
파일: BaseTest.php 프로젝트: sbuberl/fSQL
 public function setUp()
 {
     if (file_exists(self::$tempDir)) {
         Utilities::deleteDirectory(self::$tempDir);
     }
     mkdir(self::$tempDir);
 }
예제 #2
0
파일: Schema.php 프로젝트: sbuberl/fSQL
 public function drop()
 {
     $tables = $this->listTables();
     foreach ($tables as $table) {
         $this->dropTable($table);
     }
     if ($this->sequencesFile->exists()) {
         $this->sequencesFile->drop();
     }
     if ($this->name !== 'public') {
         Utilities::deleteDirectory($this->path);
     }
 }