Merge branch '215-make-sql-script-to-expire-warranties-due-for-expiration' into 'master'
Resolve "Make sql script to expire warranties due for expiration" Closes #215 See merge request jankstudio/resq!251
This commit is contained in:
commit
6b716ccaff
1 changed files with 1 additions and 0 deletions
1
utils/warranty_expire/warranty_expire.sql
Normal file
1
utils/warranty_expire/warranty_expire.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
update warranty set status='expired' where date_expire is not null and date_expire < now() - interval 1 day;
|
||||
Loading…
Reference in a new issue