Reputation: 26627
Joomla 1.5 has JTable, which can be extended to act as an Active Record system (Create/Read/Update/Delete).
However, I can not find any way for this interface to create the table represented by my JTable sub-class.
Every example I have found has started with "manually create the database tables... ", then created a JTable class to work with it. I would like to be able to distribute my plugin and have it create the tables on setup, so that this is not necessary.
Any easy way to do this?
Upvotes: 1
Views: 870
Reputation: 12465
This is usually done in the install.sql of your extension (The link is related to component but I guess for plugins it's the same).
Upvotes: 2