vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=327313

New Table + Cron
by BulliM
11 Jun 2019 17:10

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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This code runs fine, if new table is defined in /core/vb/db/mysql/querydefs.php. Runs not, if new table defined in /core/packages/addonname/db/mysql/querydefs.php. Addon is installed without errors.

Can anyone tell me why? This is my querydefs.php:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

--------------- Added 12 Jun 2019 at 14:24 ---------------

Solution: This cron job...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

...works, if tablename is defined in /core/vb/db/mysql/querydefs.php.

Following code works, if I use an addon to define my table in /core/packages/addonname/db/mysql/querydefs.php.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



All times are GMT. The time now is 02:10.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.