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);
        }
    }
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);
        }
    }
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 ) ; } }
if the plugins table still has a legacy params field, rename it to meta
to be consistent with Anahita's convention
@todo remove this method in the future releases
if the plugins table still has a legacy params field rename it to meta to be consistent with Anahita s convention