Add new CDR rows in one go.

CDR tables are potentially huge, so do the changes in on query.
remotes/svn/2.7
Andreas Granig 13 years ago
parent 0d87e0aba9
commit 57e5383702

@ -1,2 +1,7 @@
use accounting;
alter table cdr drop column source_ip;
alter table cdr
drop key estatus,
drop column source_ip,
drop column split,
drop column exported_at,
drop column export_status;

@ -1,2 +1,8 @@
use accounting;
alter table cdr add column source_ip varchar(64) not null after source_clir;
alter table cdr
add column source_ip varchar(64) not null after source_clir,
add column split tinyint(1) unsigned not null default 0 after is_fragmented,
add column exported_at datetime default null,
add column export_status enum('unexported', 'ok', 'failed') not null default 'unexported',
add key estatus(export_status);

Loading…
Cancel
Save