getServiceManager()->get(AbstractRdsResultStorage::SERVICE_ID); $persistence = $resultStorage->getPersistence(); $schema = $persistence->getSchemaManager()->createSchema(); $fromSchema = clone $schema; $tableVariables = $schema->dropTable(AbstractRdsResultStorage::VARIABLES_TABLENAME); $tableResults = $schema->dropTable(AbstractRdsResultStorage::RESULTS_TABLENAME); $queries = $persistence->getPlatform()->getMigrateSchemaSql($fromSchema, $schema); foreach ($queries as $query) { $persistence->exec($query); } // remove statement entries for this extension $model = new ExtensionModel(\common_ext_ExtensionsManager::singleton()->getExtensionById('taoOutcomeRds')); $modelRdf = ModelManager::getModel()->getRdfInterface(); foreach ($model as $triple) { $modelRdf->remove($triple); } } }