-
Helper: <?php
namespace Kanboard\Plugin\ContentCleaner\Helper;
use Kanboard\Core\Base;
class CleaningHelper extends Base
{
public function countTablesDB()
{
$db_size = $this->applicationCleaningModel->countTables();
return $db_size;
}
} Model: class ApplicationCleaningModel extends Base
{
public function countTables()
{
//return $this->db->execute('SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = `myppworkspace`');
$table_schema = $this->db->table(self::TABLE);
return $this->db->execute('SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = `'. $table_schema .'`');
}
} Calling: I am getting error: |
Beta Was this translation helpful? Give feedback.
Answered by
aljawaid
Mar 8, 2023
Replies: 2 comments 28 replies
-
@creecros could you please have a look? |
Beta Was this translation helpful? Give feedback.
13 replies
Answer selected by
aljawaid
-
So, this is promising.
It comes up with 47 Tables:
|
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@creecros could you please have a look?