parser/internal/migrations/files/0004.sql

11 lines
274 B
MySQL
Raw Normal View History

2018-06-07 13:44:05 +02:00
CREATE TABLE meter (
id serial PRIMARY KEY NOT NULL,
name varchar(255) NOT NULL,
fortop_uid varchar(50) NOT NULL
);
DELETE FROM measurement;
ALTER TABLE measurement
ADD meter_id integer NOT NULL;