![]() |
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:
|
All times are GMT. The time now is 09:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|