Skip to content

Commit

Permalink
#1132 tt_segments table; save map_version, nodes, remove link_dir con…
Browse files Browse the repository at this point in the history
…straint
  • Loading branch information
gabrielwol committed Jan 30, 2025
1 parent 2441f58 commit 5223ac4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions here/traffic/sql/create-table-tt_segments.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ CREATE TABLE IF NOT EXISTS gwolofs.tt_segments
geom geometry,
total_length numeric,
uid smallint NOT NULL DEFAULT nextval('tt_segments_uid_seq'::regclass),
CONSTRAINT unique_link_dirs UNIQUE (link_dirs)
node_start bigint NOT NULL,
node_end bigint NOT NULL,
map_version text COLLATE pg_catalog."default" NOT NULL,
CONSTRAINT tt_segments_pkey PRIMARY KEY (node_start, node_end, map_version)
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS gwolofs.tt_segments OWNER TO gwolofs;
ALTER TABLE IF EXISTS gwolofs.tt_segments
OWNER to gwolofs;

REVOKE ALL ON TABLE gwolofs.tt_segments FROM bdit_humans;

Expand Down

0 comments on commit 5223ac4

Please sign in to comment.