Hello, I need help!!! When I'm installing a plugin I want to create a table in mantis schema. The plugin is correctly installed but the schema not has the new table.
I write the function schema() in the register.php file like this:
function schema() {
return array(
array( 'CreateTableSQL', array( plugin_table( 'symbol' ), "
id I NOTNULL UNSIGNED AUTOINCREMENT PRIMARY,
name C(50) NOTNULL DEFAULT \" '' \" ,
value C(200) NOTNULL DEFAULT \" '' \",
type I NOTNULL
",
array( 'mysql' => 'DEFAULT CHARSET=utf8' ) ) ),
);
}//function
why the table would not created???????????
THANKS!!!!!
Modify schema with a plugin
Moderators: Developer, Contributor
-
Paul Götze
- Posts: 1
- Joined: 14 Mar 2013, 12:11
Re: Modify schema with a plugin
I was faced with the same problem and spent some hours on the problem.
My solution can be found here: http://stackoverflow.com/questions/1524 ... ot-created
Hope this works for you!
My solution can be found here: http://stackoverflow.com/questions/1524 ... ot-created
Hope this works for you!