Skip to content

Commit 171da72

Browse files
committed
Merge branch 'master' of https://git.jinr.ru/nica_db/emd
2 parents 2ffae3c + a927904 commit 171da72

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/commonMain/resources/schema.sql

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,11 @@ create table event
4545
);
4646

4747
CREATE TABLE statistics (
48+
id serial primary key,
4849
json_stats character varying NOT NULL,
49-
id integer NOT NULL,
5050
time_written time without time zone
5151
);
5252

53-
CREATE SEQUENCE statistics_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
54-
55-
ALTER TABLE ONLY statistics ALTER COLUMN id SET DEFAULT nextval('statistics_id_seq'::regclass);
56-
57-
ALTER TABLE ONLY statistics ADD CONSTRAINT statistics_pkey PRIMARY KEY (id);
58-
5953

6054
-- create table bmn_event
6155
-- (

testing/docker-ems-catalogue/schema.sql

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,7 @@ create table test_event
7272
);
7373

7474
CREATE TABLE statistics (
75+
id serial primary key,
7576
json_stats character varying NOT NULL,
76-
id integer NOT NULL,
7777
time_written time without time zone
7878
);
79-
80-
CREATE SEQUENCE statistics_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
81-
82-
ALTER TABLE ONLY statistics ALTER COLUMN id SET DEFAULT nextval('statistics_id_seq'::regclass);
83-
84-
ALTER TABLE ONLY statistics ADD CONSTRAINT statistics_pkey PRIMARY KEY (id);

0 commit comments

Comments
 (0)