solar-toolkit/gateway/sql/migrations/20220719061053_add_meter_co...

28 lines
1.6 KiB
MySQL
Raw Normal View History

ALTER TABLE et_runtime_data DROP COLUMN meter_test_status;
ALTER TABLE et_runtime_data DROP COLUMN meter_comm_status;
ALTER TABLE et_runtime_data DROP COLUMN active_power_l1;
ALTER TABLE et_runtime_data DROP COLUMN active_power_l2;
ALTER TABLE et_runtime_data DROP COLUMN active_power_l3;
ALTER TABLE et_runtime_data DROP COLUMN active_power_total;
ALTER TABLE et_runtime_data DROP COLUMN reactive_power_total;
ALTER TABLE et_runtime_data DROP COLUMN meter_power_factor1;
ALTER TABLE et_runtime_data DROP COLUMN meter_power_factor2;
ALTER TABLE et_runtime_data DROP COLUMN meter_power_factor3;
ALTER TABLE et_runtime_data DROP COLUMN meter_power_factor;
ALTER TABLE et_runtime_data DROP COLUMN meter_frequency;
ALTER TABLE et_runtime_data DROP COLUMN meter_energy_export_total;
ALTER TABLE et_runtime_data DROP COLUMN meter_energy_import_total;
ALTER TABLE et_runtime_data DROP COLUMN meter_active_power1;
ALTER TABLE et_runtime_data DROP COLUMN meter_active_power2;
ALTER TABLE et_runtime_data DROP COLUMN meter_active_power3;
ALTER TABLE et_runtime_data DROP COLUMN meter_active_power_total;
ALTER TABLE et_runtime_data DROP COLUMN meter_reactive_power1;
ALTER TABLE et_runtime_data DROP COLUMN meter_reactive_power2;
ALTER TABLE et_runtime_data DROP COLUMN meter_reactive_power3;
ALTER TABLE et_runtime_data DROP COLUMN meter_reactive_power_total;
ALTER TABLE et_runtime_data DROP COLUMN meter_apparent_power1;
ALTER TABLE et_runtime_data DROP COLUMN meter_apparent_power2;
ALTER TABLE et_runtime_data DROP COLUMN meter_apparent_power3;
ALTER TABLE et_runtime_data DROP COLUMN meter_apparent_power_total;
ALTER TABLE et_runtime_data DROP COLUMN meter_software_version;