Skip to content
Snippets Groups Projects
Commit 1f59549f authored by Pedro Eugenio Rocha's avatar Pedro Eugenio Rocha
Browse files

Change collect_time data type in net usage tables

Data type changed from 'timestamp' to 'time without time zone'.
parent fc2a84db
Branches
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ CREATE TABLE proinfo_net_usage ( ...@@ -44,7 +44,7 @@ CREATE TABLE proinfo_net_usage (
contact_date date default CURRENT_DATE not null, contact_date date default CURRENT_DATE not null,
inep CHARACTER VARYING(18) not null, inep CHARACTER VARYING(18) not null,
macaddr CHARACTER VARYING(18) not null, macaddr CHARACTER VARYING(18) not null,
collect_time TIMESTAMP, collect_time TIME WITHOUT TIME ZONE,
down_kbits BIGINT, down_kbits BIGINT,
down_packages INTEGER, down_packages INTEGER,
up_kbits BIGINT, up_kbits BIGINT,
......
...@@ -15,7 +15,7 @@ CREATE TABLE fact_net_usage ( ...@@ -15,7 +15,7 @@ CREATE TABLE fact_net_usage (
dat_id DATE NOT NULL REFERENCES dim_date, dat_id DATE NOT NULL REFERENCES dim_date,
macaddr MACADDR NOT NULL, macaddr MACADDR NOT NULL,
collect_time TIMESTAMP NOT NULL, collect_time TIME WITHOUT TIME ZONE NOT NULL,
down_kbits BIGINT NOT NULL DEFAULT 0, down_kbits BIGINT NOT NULL DEFAULT 0,
down_packages INTEGER NOT NULL DEFAULT 0, down_packages INTEGER NOT NULL DEFAULT 0,
up_kbits BIGINT NOT NULL DEFAULT 0, up_kbits BIGINT NOT NULL DEFAULT 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment