Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Jun 2019, 17:10
BulliM's Avatar
BulliM BulliM is offline
 
Join Date: Oct 2017
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.


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.


Last edited by BulliM; 11 Jun 2019 at 17:18.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Not tested] vB-Cron invoked by server cron Brad vBulletin 3.0 Beta Releases 6 25 Jul 2007 03:20


Tags
cron, table


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:50.

Layout Options | Width: Wide Color: