<div dir="ltr"><div class="gmail_extra" style><div class="gmail_extra" style>mysql></div><div class="gmail_extra">ALTER TABLE Tickets AUTO_INCREMENT=2013000;</div><div class="gmail_extra">INSERT INTO Tickets(Disabled) VALUES(1);</div>
<div class="gmail_extra">DELETE FROM Tickets WHERE id = '2013000'</div></div><div class="gmail_extra"><br></div><div class="gmail_extra" style>Tickets will then start at 2013000 and increment 2013001, 2013002, etc. How many 0s you append to 2013 should reflect the expected ticket load for that year. If you get 2000 tickets in 2013 then it will be 2015000 by the end of the year. </div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>N.B.,Tickets.id is int(11), so you won't be able to do more than 20130000000, but a million tickets a year would be impressive.</div><div class="gmail_extra" style>
<br></div><div class="gmail_extra" style>You'll have to execute the above commands again in 2014 and every year after to maintain this. Maybe a cron job will take care of it.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, May 2, 2013 at 1:52 PM, Cena, Stephen (ext. 300) <span dir="ltr"><<a href="mailto:SJC@qvii.com" target="_blank">SJC@qvii.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<u></u>
<div>
<div><span><font face="Arial">I'm going to be
deploying another RT installation for our service department here. One thing
they would like is to have the ticket numbers customized. What they'd like is
for the current year to be prepended to each ticket number, and then reset. So
for 2013 it's be, say, 20131 - 2013n and then next year have 20141 to 2014n and
so on.</font></span></div>
<div><span><font face="Arial"></font></span> </div>
<div><span><font face="Arial">Is something like
this possible, or should I just tell them it's too
difficult?</font></span></div>
<div> </div>
<div align="left"><font face="Arial">Stephen Cena</font></div>
<div align="left"><font face="Arial">QVII</font></div>
<div align="left"><font face="Arial">MIS/IT Dept</font></div>
<div align="left"><font face="Arial">850 Hudson Ave.</font></div>
<div align="left"><font face="Arial">Rochester, NY. 14620</font></div>
<div align="left"><font face="Arial"><a href="tel:585-544-0450%20x300" value="+15855440450" target="_blank">585-544-0450 x300</a></font></div>
<div align="left"><font face="Arial"><a href="mailto:sjc@qvii.com" target="_blank">sjc@qvii.com</a></font></div>
<div align="left"><font face="Arial">"Thank you for helping us help you help
us all."</font></div>
<div align="left"><font face="Arial">--For email related issues, please
contact <a href="mailto:postmaster@qvii.com" target="_blank">postmaster@qvii.com</a></font></div>
<div align="left"><font face="Arial"></font> </div>
<div align="left"><font face="Arial"></font> </div>
<div> </div></div>
</blockquote></div><br></div></div>