mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 18:46:24 +05:00
Conflicts: data/storage/migrator/usage_float_to_int.sql engine/version.go migrator/migrator.go migrator/migrator_it_test.go migrator/stats.go migrator/thresholds.go utils/consts.go
5 lines
223 B
SQL
5 lines
223 B
SQL
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;
|