Contao\Automator::purgeVersionTable PHP Method

purgeVersionTable() public method

Purge the version table
public purgeVersionTable ( )
    public function purgeVersionTable()
    {
        $objDatabase = \Database::getInstance();
        // Truncate the table
        $objDatabase->execute("TRUNCATE TABLE tl_version");
        // Add a log entry
        $this->log('Purged the version table', __METHOD__, TL_CRON);
    }