SourceForge has been redesigned. Learn more.
Close

#402 Create XoopsModelAlter to facilitate module installation/update

XOOPS_2.6
open
nobody
5
2014-08-20
2012-09-26
zyspec
No

Modules need a way to alter database tables using methods similar to the database read/write/status model classes during module updates. Attached is a proposed alter class (XoopsModelAlter) that will allow modification of tables without the module having to create the SQL syntax. This will allow the underlying database access to occur without the module having to write the SQL 'ALTER TABLE' statements.

1 Attachments

Discussion

  • zyspec

    zyspec - 2012-09-26

    After further thought maybe these (or similar) methods should be added to the XoopsDatabaseManager class. In any event, the functionality is needed in the core so that tables can be altered during module installation in a database agnostic way (MySQL, SQLITE, PGSQL, etc.)

     

Log in to post a comment.