How to add a field in the dataabse with install function for a plugin I am creating.
tonoshi Offline
Junior Member
**
Posts: 23
Joined: Aug 2010
Post: #3
RE: How to add a field in the dataabse with install function for a plugin I am creating.
Thank you. I tried it but it is not working. This is the error message I get when I tried that.

PHP Code:
1
2
3
4
5
6
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
    1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mybb_forums ADD 'forum_ignore' INT(1) NOT NULL DEFAULT '0'' at line 1
Query:
    ALTER mybb_forums ADD 'forum_ignore' INT(1) NOT NULL DEFAULT '0' 



Can you please post the correct code for me with the right install and uninstall functions with the query? I would really appreciate it. I have been trying for quite some time and I havent found the solution.

08-04-2010 11:32 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: How to add a field in the dataabse with install function for a plugin I am creating. - tonoshi - 08-04-2010 11:32 PM

 Standard Tools
Forum Jump: