From 24e00ce389078b6978f00dabb5f13524dbc3d760 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 7 Apr 2021 17:42:45 +0300 Subject: [PATCH] try to fix test --- proco/realtime_unicef/tests/db/initdb.sql | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/proco/realtime_unicef/tests/db/initdb.sql b/proco/realtime_unicef/tests/db/initdb.sql index 11cfe2e..bf9e9f3 100644 --- a/proco/realtime_unicef/tests/db/initdb.sql +++ b/proco/realtime_unicef/tests/db/initdb.sql @@ -4,7 +4,7 @@ drop table if exists public.measurements; -- create tables & relations CREATE TABLE public.measurements ( - id bigint NOT NULL, + id SERIAL PRIMARY KEY, "timestamp" timestamp with time zone, uuid text, browser_id text, @@ -19,14 +19,3 @@ CREATE TABLE public.measurements ( latency bigint, results jsonb ); -CREATE SEQUENCE public.measurements_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; -ALTER TABLE ONLY public.measurements - ALTER COLUMN id - SET DEFAULT nextval('public.measurements_id_seq'::regclass); -ALTER TABLE ONLY public.measurements - ADD CONSTRAINT measurements_pkey PRIMARY KEY (id);