Forum Moderators: coopster
The query I'm trying to run is as follows:
ALTER TABLE `Dispatch`
CHANGE `Complete` `Complete` DATE DEFAULT NULL,
CHANGE `RecDate` `RecDate` DATE DEFAULT NULL
;
ALTER TABLE `Sales`
CHANGE `InvDate` `InvDate` DATE DEFAULT NULL,
CHANGE `EntDate` `EntDate` DATE DEFAULT NULL,
CHANGE `DueDate` `DueDate` DATE DEFAULT NULL
;
ALTER TABLE `SalesCrosstab` CHANGE `DueDate` `DueDate` DATE DEFAULT NULL
;
ALTER TABLE `Equip`
CHANGE `Install` `Install` DATE DEFAULT NULL,
CHANGE `Warranty` `Warranty` DATE DEFAULT NULL
;
ALTER TABLE `Equip_Temp` CHANGE `Install` `Install` DATE DEFAULT NULL
Does anyone know how to automate this? Does CRON have this ability? What all would I need to create the CRON job?
Thanks
It seems odd to me that you need to continually ALTER the table ...? Are you creating the table every time you run your process? Why not create the table once and script the date conversion?
Yes, you can also use cron to process your scripts at predetermined time intervals.
Command is of format:
GET absolute_url_of_php_file > /dev/null
For per-hour execution:
I write *, */24, *, *, * respectively in Minute, Hour, Day, Month, weekday fields.