|
@@ -92,7 +92,7 @@ create table employees
|
|
|
id integer primary key not null,
|
|
|
name text,
|
|
|
birthday timestamp ,
|
|
|
- military_rank_id integer
|
|
|
+ military_rank_id integer not null
|
|
|
);
|
|
|
|
|
|
insert into employees(id, name, birthday,military_rank_id )
|
|
@@ -187,8 +187,8 @@ raise notice 'Создание общих справочников и напол
|
|
|
|
|
|
create table calc_temperature_correction
|
|
|
(
|
|
|
- temperature numeric(8,2) primary key,
|
|
|
- correction numeric(8,2)
|
|
|
+ temperature numeric(8,2) not null primary key,
|
|
|
+ correction numeric(8,2) not null
|
|
|
);
|
|
|
|
|
|
insert into public.calc_temperature_correction(temperature, correction)
|
|
@@ -254,9 +254,9 @@ values (1, 'Заголовок для Таблицы № 2 (ДМК)', array[0, 1
|
|
|
create sequence calc_height_correction_seq;
|
|
|
create table calc_height_correction
|
|
|
(
|
|
|
- id integer primary key default nextval('public.calc_height_correction_seq'),
|
|
|
+ id integer primary key not null default nextval('public.calc_height_correction_seq'),
|
|
|
height integer not null,
|
|
|
- measurment_type_id integer
|
|
|
+ measurment_type_id integer not null
|
|
|
);
|
|
|
|
|
|
insert into calc_height_correction(height, measurment_type_id)
|
|
@@ -268,9 +268,9 @@ values(200,1),(400,1),(800,1),(1200,1),(1600,1),(2000,1),(2400,1),(3000,1),(4000
|
|
|
create sequence calc_temperature_height_correction_seq;
|
|
|
create table calc_temperature_height_correction
|
|
|
(
|
|
|
- id integer primary key default nextval('public.calc_temperature_height_correction_seq'),
|
|
|
- calc_height_id integer,
|
|
|
- calc_temperature_header_id integer,
|
|
|
+ id integer primary key not null default nextval('public.calc_temperature_height_correction_seq'),
|
|
|
+ calc_height_id integer not null,
|
|
|
+ calc_temperature_header_id integer not null,
|
|
|
positive_values numeric[],
|
|
|
negative_values numeric[]
|
|
|
);
|