Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 3:03 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Importing Vouchers Without the id Column Using MySQL
PostPosted: Thu Sep 03, 2009 4:24 pm 
Offline

Joined: Mon Apr 14, 2008 8:37 pm
Posts: 356
Location: Canada
Hi All,

This really isn't a Asterisk or A2B issue. But I'm moving my vouchers from all my agent servers into a single installation of A2B 1.4. So far, I've been able to import all my vouchers from my previous installation of A2B 1.3.4, into my current 1.4 machine. Right now, I'm working on importing my second batch of vouchers from my second agent into my new 1.4 machine, but the ids are the same as the first batch that i imported because it was on a completely different server. SO NOW there will be some duplicate entries but ONLY in the id field of the voucher table.

What command would I have to use in mysql to import the voucher table without the id field. And how will the id field then be populated since it uses autoincrementation?

Any suggestions, help and advice on this subject would be greatly appreciated as always.

Thanks in advance!


Top
 Profile  
 
 Post subject: Re: Importing Vouchers Without the id Column Using MySQL
PostPosted: Fri Oct 03, 2014 4:30 pm 
Offline

Joined: Thu Oct 02, 2014 5:55 pm
Posts: 2
Hello, just wondering... after you migrated your vouchers to a2billing, did they work? I am getting this problem where all my vouchers are giving invalid voucher but anyone created using the "add_voucher" on the webgui works fine. Please let me know if you ever encountered a problem like this and if so how did you solve it.

Thanks

Nogie


Top
 Profile  
 
 Post subject: Re: Importing Vouchers Without the id Column Using MySQL
PostPosted: Sun Oct 05, 2014 8:33 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi
Compare a line in MySQL of a voucher added by the interface, and a line added by you.

This will tell you where you went wrong in the import.

Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group