LMSouq
moodle-core Open

Moodle - use plugin/db/install.xml or plugin/db/install.php when creating a new plugin?

JO
Joe Cape
1 month ago
3 views
Problem Description
Is there any reason for which I should prefer one of the means of creating new database tables for a plugin over the other? It seems like most of the core plugins use an XML file but I know that I can also use the $DB->get_manager() to create tables, as in an upgrade script.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base