public function updateLegacyPluginsParams()
    {
        //Renaming a legacy database table field otherwise cli would break
        $db = AnService::get('anahita:domain.store.database');
        $pluginColumns = $db->getColumns('plugins');

        if (isset($pluginColumns['params'])) {
           $db->execute('ALTER TABLE `#__plugins` CHANGE `params` `meta` text DEFAULT NULL');
           $db->execute('ALTER TABLE `#__plugins` CHANGE `published` `enabled` tinyint(3) NOT NULL DEFAULT 0');
           $db->execute('DROP INDEX `idx_folder` ON `#__plugins`');
           $db->execute('ALTER TABLE `#__plugins` ADD INDEX `idx_folder` (`enabled`, `folder`)');
           print "Please run the previous command one more time!\n";
           exit(0);
        }
    }