예제 #1
0
 /**
  * @since 2.5
  *
  * @param boolean $verbose
  */
 public function uninstall($verbose = true)
 {
     $messageReporter = $this->newMessageReporter($verbose);
     $messageReporter->reportMessage("\nSelected storage engine is \"SMWSQLStore3\" (or an extension thereof)\n");
     $messageReporter->reportMessage("\nDeleting all database content and tables generated by SMW ...\n\n");
     $this->tableBuilder->setMessageReporter($messageReporter);
     foreach ($this->tableSchemaManager->getTables() as $table) {
         $this->tableBuilder->drop($table);
     }
     Hooks::run('SMW::SQLStore::AfterDropTablesComplete', array($this->tableBuilder));
     $messageReporter->reportMessage("\nStandard and auxiliary tables with corresponding data have been removed successfully.\n");
     return true;
 }
 /**
  * @since 2.5
  *
  * @param TableBuilder $tableBuilder
  */
 public function checkOnPostCreation(TableBuilder $tableBuilder)
 {
     $this->doCheckInternalPropertyIndices($this->store->getConnection(DB_MASTER));
     $tableBuilder->checkOn(TableBuilder::POST_CREATION);
 }