Esempio n. 1
0
 public function postDown(\Doctrine\DBAL\Schema\Schema $schema)
 {
     parent::postDown($schema);
     $sql = 'UPDATE display_elements set type="page" WHERE type="element"';
     $results = $this->connection->executeQuery($sql);
     $this->write("<info>Updated {$results->rowCount()} display elements from type 'element' to type 'page'.</info>");
 }
Esempio n. 2
0
 public function postDown(\Doctrine\DBAL\Schema\Schema $schema)
 {
     parent::postDown($schema);
     $this->migrateFiles();
     foreach (scandir($this->_tmpDir) as $item) {
         if ($item == '.' || $item == '..') {
             continue;
         }
         unlink($this->_tmpDir . DIRECTORY_SEPARATOR . $item);
     }
     rmdir($this->_tmpDir);
 }