zentaopms/hook/postuninstall.php
2023-05-16 10:47:08 +08:00

14 lines
299 B
PHP

<?php
if(version_compare($this->config->version, '3.1', '<='))
{
$sql = "ALTER TABLE `zt_task` DROP `estStarted`, DROP `realStarted`;";
$sql = str_replace('zt_', $this->config->db->prefix, $sql);
try
{
$this->dbh->exec($sql);
}
catch (PDOException $e)
{
}
}