MantisBT plugin table not created

I have some problems with my MantisBT plugin table. The plugin itself is installed and running, but the plugin table is not created when the plugin is installed.

I simply added a schema function to my plugin class to create a table:

function schema()
{       
    return array(
            array("CreateTableSQL", array(plugin_table("test"), "
                id I NOTNULL UNSIGNED AUTOINCREMENT PRIMARY
            "))
    ); 
}

The same for third-party plugins: tables are not created when they are installed!

I am using MantisBT 1.2.14 and XAMPP 1.7.7. on Windows 7. A database user, by the way, has ALL PRIVILEGES for actions in the database.

Where could the problem be? And does anyone know a good documentation about defining a schema for a mantis?

+5
source share
2 answers

. Mantis "mantis_config_table" .

( "" config_id "plugin_Test_schema" ) -1, / , . "/ ".

. / "/ ".

+3

.

1) uninstall the plugin with mantis: Manage / Manage Plugins
2) delete plugin config with mantis: Manage / Manage Configuration
3) drop the table with mysql: DROP TABLE your_plugin_table_name;

plugin_callback__uninstall(), .

Mantis (. )

,

+1

All Articles