mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 14:48:43 +05:00
Added migration from action triggers to thresholds and cdrstats to stats
This commit is contained in:
4
data/storage/migrator/usage_float_to_int.sql
Normal file
4
data/storage/migrator/usage_float_to_int.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE cdrs CHANGE COLUMN `usage` `usage_old` DECIMAL(30,9);
|
||||
ALTER TABLE cdrs ADD `usage` BIGINT;
|
||||
UPDATE cdrs SET `usage` = `usage_old` * 1000000000 WHERE usage_old IS NOT NULL;
|
||||
ALTER TABLE cdrs DROP COLUMN usage_old;
|
||||
Reference in New Issue
Block a user