$definitions */ $definitions = \json_decode($content, true); $builder = new SchemaBuilder($dbPool->get('schema')); foreach ($definitions as $name => $definition) { $builder->dropTable($name); } $builder->execute(); } /** * Unregister app from database. * * @param DatabasePool $dbPool Database instance * @param ApplicationInfo $info App info * * @return void * * @since 1.0.0 */ public static function unregisterFromDatabase(DatabasePool $dbPool, ApplicationInfo $info) : void { $queryApp = new Builder($dbPool->get('delete')); $queryApp->delete() ->from('app') ->where('app_name', '=', $info->getInternalName()) ->execute(); } }