Skip to content

Commit

Permalink
oops... need to declare type
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Feb 29, 2020
1 parent ec6807c commit 0313692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions air-quality/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ CREATE DATABASE airquality;
CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;

CREATE TABLE measurement_types (
parameter_id GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
parameter_id INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
parameter TEXT NOT NULL,
unit TEXT NOT NULL,
UNIQUE(parameter, unit)
);

CREATE TABLE locations (
location_id GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
location_id INT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
city_name TEXT NOT NULL,
country_name TEXT NOT NULL,
location_name TEXT NOT NULL,
Expand Down

0 comments on commit 0313692

Please sign in to comment.