postuninstall.php 299 B

12345678910111213
  1. <?php
  2. if(version_compare($this->config->version, '3.1', '<='))
  3. {
  4. $sql = "ALTER TABLE `zt_task` DROP `estStarted`, DROP `realStarted`;";
  5. $sql = str_replace('zt_', $this->config->db->prefix, $sql);
  6. try
  7. {
  8. $this->dbh->exec($sql);
  9. }
  10. catch (PDOException $e)
  11. {
  12. }
  13. }