Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Questions: how to ignore the Setup() if Column already exists in db-table?
I have a Plugin that adds a new Column to the Database Table "User".
Because of testing, this Column has already been created and has even already some values in it.
Now I have the problem, that I cannot activate the Plugin anymore - because it fails telling "Column already exists".
How can I get over this error by using something like "If Column X already exists, do no DB-Setup; else do it"?
Because of testing, this Column has already been created and has even already some values in it.
Now I have the problem, that I cannot activate the Plugin anymore - because it fails telling "Column already exists".
How can I get over this error by using something like "If Column X already exists, do no DB-Setup; else do it"?
0
Comments
Vanilla Forums COO [GitHub, Twitter, About.me]
Try:
Vanilla Forums COO [GitHub, Twitter, About.me]
http://vanillaforums.org/page/DatabaseStructure
Did I miss-interpet that docu?
[Update]
Oh you're right - thanks for pointing this out. I changed the code and could now successfully enable the plugin again!