Migrate to proper DB migrations.
This commit is contained in:
parent
2712984ba4
commit
f06e67ecec
1 changed files with 33 additions and 0 deletions
33
migrations/00001_p1.sql
Normal file
33
migrations/00001_p1.sql
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
-- +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
|
Loading…
Reference in a new issue