33 lines
No EOL
683 B
SQL
33 lines
No EOL
683 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE IF NOT EXISTS p1 (
|
|
timestamp TIMESTAMPTZ,
|
|
delivered_tariff1 INT,
|
|
delivered_tariff2 INT,
|
|
returned_tariff1 INT,
|
|
returned_tariff2 INT,
|
|
delivery_all INT,
|
|
returning_all INT,
|
|
failures INT,
|
|
long_failures INT,
|
|
sags_l1 INT,
|
|
sags_l2 INT,
|
|
sags_l3 INT,
|
|
swells_l1 INT,
|
|
swells_l2 INT,
|
|
swells_l3 INT,
|
|
gas INT,
|
|
voltage_l1 INT,
|
|
voltage_l2 INT,
|
|
voltage_l3 INT,
|
|
current_l1 INT,
|
|
current_l2 INT,
|
|
current_l3 INT,
|
|
delivery_l1 INT,
|
|
delivery_l2 INT,
|
|
delivery_l3 INT,
|
|
returning_l1 INT,
|
|
returning_l2 INT,
|
|
returning_l3 INT
|
|
);
|
|
-- +goose StatementEnd |