mirror of https://github.com/sipwise/db-schema.git
Change-Id: I298a6576dd67e27d34e65e8e827bcea0ff7669c0changes/82/12182/3
parent
1990ddd5f0
commit
215e8b7c26
@ -0,0 +1,10 @@
|
||||
USE provisioning;
|
||||
|
||||
ALTER TABLE recording_calls
|
||||
DROP COLUMN start_timestamp,
|
||||
DROP COLUMN end_timestamp,
|
||||
DROP COLUMN status;
|
||||
|
||||
ALTER TABLE recording_streams
|
||||
DROP COLUMN start_timestamp,
|
||||
DROP COLUMN end_timestamp;
|
@ -0,0 +1,18 @@
|
||||
USE provisioning;
|
||||
|
||||
ALTER TABLE recording_calls
|
||||
ADD COLUMN start_timestamp decimal(13,3) default NULL,
|
||||
ADD COLUMN end_timestamp decimal(13,3) default NULL,
|
||||
ADD COLUMN status enum('recording', 'completed', 'confirmed') default 'recording';
|
||||
|
||||
UPDATE recording_calls SET
|
||||
start_timestamp = unix_timestamp(start_time),
|
||||
end_timestamp = unix_timestamp(end_time);
|
||||
|
||||
ALTER TABLE recording_streams
|
||||
ADD COLUMN start_timestamp decimal(13,3) default NULL,
|
||||
ADD COLUMN end_timestamp decimal(13,3) default NULL;
|
||||
|
||||
UPDATE recording_streams SET
|
||||
start_timestamp = unix_timestamp(start_time),
|
||||
end_timestamp = unix_timestamp(end_time);
|
Loading…
Reference in new issue