getPath()) . '/Admin/Install/db.json'; if (!\file_exists($path)) { return; } $content = \file_get_contents($path); if ($content === false) { return; } $definitions = \json_decode($content, true); $builder = new SchemaBuilder($dbPool->get('schema')); $builder->prefix($dbPool->get('schema')->prefix); foreach ($definitions as $definition) { $builder->dropTable($definition['table'] ?? ''); } $builder->execute(); } }