The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
New Table + Cron
I've created a new table in database. In cron script I try to delete some rows from it. Problem is, that new table isn't defined in /core/vb/db/mysql/querydefs.php. If I define the new table there, cron job runs without errors. But I won't define my table there, because on updates, this file is overwritten.
So I've created an addon instead and defined new table in /core/packages/addonname/db/mysql/querydefs.php. But that won't work. Code:
vB::getDbAssertor()->delete('newtable',array('columnname' => 'columnvalue')); Can anyone tell me why? This is my querydefs.php: PHP Code:
Solution: This cron job... PHP Code:
Following code works, if I use an addon to define my table in /core/packages/addonname/db/mysql/querydefs.php. PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|