@opengis/gis 0.2.90 → 0.2.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +1,32 @@
1
- [
2
- {
3
- "id": "1",
4
- "text": "Діючий",
5
- "color": "#1ab394"
6
- },
7
- {
8
- "id": "2",
9
- "text": "Зупинений",
10
- "color": "#ed82c8"
11
- },
12
- {
13
- "id": "3",
14
- "text": "Скасований",
15
- "color": "#4a4a4a"
16
- },
17
- {
18
- "id": "5",
19
- "text": "Проектний",
20
- "color": "#6495ed"
21
- },
22
- {
23
- "id": "7",
24
- "text": "Очікує розгляду",
25
- "color": "#92b8ef"
26
- },
27
- {
28
- "id": "10",
29
- "text": "Архівний",
30
- "color": "#d48428"
31
- }
1
+ [
2
+ {
3
+ "id": "1",
4
+ "text": "Діючий",
5
+ "color": "#1ab394"
6
+ },
7
+ {
8
+ "id": "2",
9
+ "text": "Зупинений",
10
+ "color": "#ed82c8"
11
+ },
12
+ {
13
+ "id": "3",
14
+ "text": "Скасований",
15
+ "color": "#4a4a4a"
16
+ },
17
+ {
18
+ "id": "5",
19
+ "text": "Проектний",
20
+ "color": "#6495ed"
21
+ },
22
+ {
23
+ "id": "7",
24
+ "text": "Очікує розгляду",
25
+ "color": "#92b8ef"
26
+ },
27
+ {
28
+ "id": "10",
29
+ "text": "Архівний",
30
+ "color": "#d48428"
31
+ }
32
32
  ]
@@ -1 +1 @@
1
- select uid, coalesce(coalesce(sur_name,'')||coalesce(' '||user_name,'') ||coalesce(' '||father_name,''),login) as text from admin.users
1
+ select uid, coalesce(coalesce(sur_name,'')||coalesce(' '||user_name,'') ||coalesce(' '||father_name,''),login) as text from admin.users
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/gis",
3
- "version": "0.2.90",
3
+ "version": "0.2.92",
4
4
  "type": "module",
5
5
  "author": "Softpro",
6
6
  "main": "./dist/index.js",
@@ -73,4 +73,4 @@
73
73
  "vue-router": "4.5.1",
74
74
  "vuedraggable": "^4.1.0"
75
75
  }
76
- }
76
+ }
@@ -0,0 +1,14 @@
1
+ CREATE OR REPLACE FUNCTION public.array_intersect(
2
+ anyarray,
3
+ anyarray)
4
+ RETURNS anyarray AS
5
+ $BODY$
6
+
7
+ SELECT ARRAY(
8
+ SELECT UNNEST($1)
9
+ INTERSECT
10
+ SELECT UNNEST($2)
11
+ );
12
+ $BODY$
13
+ LANGUAGE sql VOLATILE
14
+ COST 100;
@@ -0,0 +1,75 @@
1
+ -- Table: gis.group_list
2
+
3
+ -- DROP TABLE gis.group_list;
4
+
5
+ CREATE TABLE if not exists gis.group_list
6
+ (
7
+ group_id text NOT NULL DEFAULT admin.next_id(), -- ідентифікатор групи
8
+ group_name text NOT NULL, -- Назва групи
9
+ enabled boolean DEFAULT true, -- ознака чи включена група
10
+ created_at timestamp without time zone DEFAULT date_trunc('minutes'::text, (now())::timestamp without time zone),
11
+ updated_at timestamp without time zone,
12
+ updated_by text,
13
+ created_by text,
14
+ cdate timestamp without time zone DEFAULT date_trunc('minutes'::text, (now())::timestamp without time zone), -- дата створення запису в БД
15
+ editor_date timestamp without time zone, -- Дата редагування
16
+ editor_id text, -- ідентифікатор користувача котрий останій вносив зміни в запис
17
+ uid text, -- ідентифікатор користувача який створив запис
18
+ icon text, -- Зображення
19
+ CONSTRAINT gis_group_id_pkey PRIMARY KEY (group_id)
20
+ );
21
+
22
+ COMMENT ON COLUMN gis.group_list.group_id IS 'ідентифікатор групи';
23
+ COMMENT ON COLUMN gis.group_list.group_name IS 'Назва групи';
24
+ COMMENT ON COLUMN gis.group_list.enabled IS 'ознака чи включена група';
25
+ COMMENT ON COLUMN gis.group_list.cdate IS 'дата створення запису в БД';
26
+ COMMENT ON COLUMN gis.group_list.editor_date IS 'Дата редагування';
27
+ COMMENT ON COLUMN gis.group_list.editor_id IS 'ідентифікатор користувача котрий останій вносив зміни в запис';
28
+ COMMENT ON COLUMN gis.group_list.uid IS 'ідентифікатор користувача який створив запис';
29
+ COMMENT ON COLUMN gis.group_list.icon IS 'Зображення';
30
+
31
+
32
+ -- Index: gis.gis_group_list_enabled_btree_idx
33
+
34
+ -- DROP INDEX gis.gis_group_list_enabled_btree_idx;
35
+
36
+ CREATE INDEX if not exists gis_group_list_enabled_btree_idx
37
+ ON gis.group_list
38
+ USING btree
39
+ (enabled);
40
+
41
+ -- Index: gis.gis_group_list_group_cdate_btree_idx
42
+
43
+ -- DROP INDEX gis.gis_group_list_group_cdate_btree_idx;
44
+
45
+ CREATE INDEX if not exists gis_group_list_group_cdate_btree_idx
46
+ ON gis.group_list
47
+ USING btree
48
+ (cdate);
49
+
50
+ -- Index: gis.gis_group_list_group_enabled_btree_idx
51
+
52
+ -- DROP INDEX gis.gis_group_list_group_enabled_btree_idx;
53
+
54
+ CREATE INDEX if not exists gis_group_list_group_enabled_btree_idx
55
+ ON gis.group_list
56
+ USING btree
57
+ (enabled);
58
+
59
+ -- Index: gis.gis_group_list_group_name_gin_idx
60
+
61
+ -- DROP INDEX gis.gis_group_list_group_name_gin_idx;
62
+
63
+ CREATE INDEX if not exists gis_group_list_group_name_gin_idx
64
+ ON gis.group_list
65
+ USING gin
66
+ (group_name COLLATE pg_catalog."default" gin_trgm_ops);
67
+
68
+ -- Index: gis.gis_group_list_group_name_gin_idx_lower
69
+
70
+ -- DROP INDEX gis.gis_group_list_group_name_gin_idx_lower;
71
+
72
+ CREATE INDEX if not exists gis_group_list_group_name_gin_idx_lower
73
+ ON gis.group_list
74
+ USING gin
75
+ (lower(group_name) COLLATE pg_catalog."default" gin_trgm_ops);
@@ -0,0 +1,416 @@
1
+ create table if not exists gis.metadata
2
+ (
3
+ metadata_id text default next_id() not null primary key,
4
+ layer_id text not null,
5
+ name text,
6
+ metadata_key text unique,
7
+ abstract text,
8
+ purpose text,
9
+ source text,
10
+ access_constraints text,
11
+ use_constraints text,
12
+ license text,
13
+ topic_category text,
14
+ keywords text[],
15
+ accuracy_statement text,
16
+ update_frequency text,
17
+ scale text,
18
+ encoding text default 'UTF-8'::text not null,
19
+ language text default 'ua'::text not null,
20
+ katottg text,
21
+ region text,
22
+ size numeric,
23
+ standards text default '4'::text not null,
24
+ service_type text default 'web_service'::text not null,
25
+ geom geometry,
26
+ date_created date,
27
+ date_updated date,
28
+ year integer,
29
+ data_owner_code text not null,
30
+ data_producer_code text,
31
+ created_at timestamp default now(),
32
+ created_by text,
33
+ updated_by text,
34
+ updated_at timestamp,
35
+ contact_id text,
36
+ srid text default 4326,
37
+ description text,
38
+ resource_level text,
39
+ atu_id text,
40
+ metadata_owner_id text,
41
+ metadata_producer_id text,
42
+ frequency_update text,
43
+ limit_access json,
44
+ resource_locator json,
45
+ history json,
46
+ z_max integer,
47
+ z_min integer,
48
+ high_scale text,
49
+ low_scale text,
50
+ spatial_resolution text,
51
+ coord_ref_system text,
52
+ cdate timestamp default now(),
53
+ uid text,
54
+ editor_id text,
55
+ editor_date timestamp,
56
+ files json,
57
+ character_encoding text,
58
+ conditions_access text,
59
+ processing_environment text,
60
+ dataresource_source json,
61
+ type_localization integer[],
62
+ way_create_obj text,
63
+ eval_method_scope text,
64
+ type_of_financing text,
65
+ conformity text,
66
+ links json,
67
+ tender_id text,
68
+ rights json,
69
+ limitations json,
70
+ enabled boolean default true,
71
+ product_cost numeric,
72
+ attribution_text text,
73
+ is_verify boolean default false,
74
+ image text,
75
+ object_id text,
76
+ type text default 'service'::text not null
77
+ );
78
+
79
+ comment on table gis.metadata is 'Каталог метаданих';
80
+
81
+ comment on column gis.metadata.metadata_id is 'Id метаданих';
82
+
83
+ comment on column gis.metadata.layer_id is 'Ідентифікатор ресурсу';
84
+
85
+ comment on column gis.metadata.name is 'Назва метаданих';
86
+
87
+ comment on column gis.metadata.metadata_key is 'Унікальний ключ';
88
+
89
+ comment on column gis.metadata.abstract is 'Опис набору даних або шару';
90
+
91
+ comment on column gis.metadata.purpose is 'Мета метаданих';
92
+
93
+ comment on column gis.metadata.source is 'Джерело даних';
94
+
95
+ comment on column gis.metadata.access_constraints is 'Обмеження доступу';
96
+
97
+ comment on column gis.metadata.use_constraints is 'Обмеження використання';
98
+
99
+ comment on column gis.metadata.license is 'Ліцензія';
100
+
101
+ comment on column gis.metadata.topic_category is 'Тематична категорія ресурсу';
102
+
103
+ comment on column gis.metadata.keywords is 'Ключові слова';
104
+
105
+ comment on column gis.metadata.accuracy_statement is 'Точність метаданих';
106
+
107
+ comment on column gis.metadata.update_frequency is 'Частота оновлення';
108
+
109
+ comment on column gis.metadata.scale is 'Масштаб';
110
+
111
+ comment on column gis.metadata.encoding is 'Код набору символів';
112
+
113
+ comment on column gis.metadata.language is 'Мова метаданих';
114
+
115
+ comment on column gis.metadata.katottg is 'Код КАТОТТГ';
116
+
117
+ comment on column gis.metadata.region is 'Територіального охоплення';
118
+
119
+ comment on column gis.metadata.size is 'Розмір';
120
+
121
+ comment on column gis.metadata.standards is 'Інформація про відповідність метаданих стандартам';
122
+
123
+ comment on column gis.metadata.service_type is 'Тип сервісу';
124
+
125
+ comment on column gis.metadata.geom is 'Охоплення (екстент)';
126
+
127
+ comment on column gis.metadata.date_created is 'Дата створення мемаданих';
128
+
129
+ comment on column gis.metadata.date_updated is 'Дата оновлення мемаданих';
130
+
131
+ comment on column gis.metadata.year is 'Рік актуальності метаданих';
132
+
133
+ comment on column gis.metadata.data_owner_code is 'Код суб''єкта, що є власником ресурсу';
134
+
135
+ comment on column gis.metadata.data_producer_code is 'Код виробника даних';
136
+
137
+ comment on column gis.metadata.contact_id is 'Суб''єкт, що є власником ресурсу';
138
+
139
+ comment on column gis.metadata.srid is 'Просторова система координат';
140
+
141
+ comment on column gis.metadata.description is 'Опис метаданих';
142
+
143
+ comment on column gis.metadata.resource_level is 'Рівень (міжнар, нац., місц.)';
144
+
145
+ comment on column gis.metadata.atu_id is 'Територіальне охоплення';
146
+
147
+ comment on column gis.metadata.metadata_owner_id is 'Власник даних';
148
+
149
+ comment on column gis.metadata.metadata_producer_id is 'Виробники даних';
150
+
151
+ comment on column gis.metadata.frequency_update is 'Частота оновлення';
152
+
153
+ comment on column gis.metadata.limit_access is 'Права та ліцензія';
154
+
155
+ comment on column gis.metadata.resource_locator is 'Посиланння';
156
+
157
+ comment on column gis.metadata.history is 'історія';
158
+
159
+ comment on column gis.metadata.z_max is 'Максимальний зум';
160
+
161
+ comment on column gis.metadata.z_min is 'Мінімальний зум';
162
+
163
+ comment on column gis.metadata.high_scale is 'Максимальний масштаб подання даних';
164
+
165
+ comment on column gis.metadata.low_scale is 'Мінімальний масштаб подання даних';
166
+
167
+ comment on column gis.metadata.spatial_resolution is 'Роздільна здатність в масштабі';
168
+
169
+ comment on column gis.metadata.coord_ref_system is 'Система координат';
170
+
171
+ comment on column gis.metadata.editor_id is 'Ідентифікатор редактора';
172
+
173
+ comment on column gis.metadata.files is 'Файли';
174
+
175
+ comment on column gis.metadata.character_encoding is 'Система кодування';
176
+
177
+ comment on column gis.metadata.conditions_access is 'Умови до даних';
178
+
179
+ comment on column gis.metadata.processing_environment is 'Середовище обробки (ПЗ)';
180
+
181
+ comment on column gis.metadata.dataresource_source is 'Опис джерела даних';
182
+
183
+ comment on column gis.metadata.type_localization is 'Спосіб просторового подання об’єкта місцевості';
184
+
185
+ comment on column gis.metadata.way_create_obj is 'Спосіб створення об’єкта місцевості';
186
+
187
+ comment on column gis.metadata.eval_method_scope is 'Правила цифрового опису';
188
+
189
+ comment on column gis.metadata.type_of_financing is 'Джерело фінансування';
190
+
191
+ comment on column gis.metadata.conformity is 'Відповідність стандартам, специфікаціям для інетроперабельності';
192
+
193
+ comment on column gis.metadata.links is 'Розповсюдження даних';
194
+
195
+ comment on column gis.metadata.tender_id is 'Посилання на тендер';
196
+
197
+ comment on column gis.metadata.rights is 'Права';
198
+
199
+ comment on column gis.metadata.limitations is 'Обмеження у використанні';
200
+
201
+ comment on column gis.metadata.product_cost is 'Вартість продукції';
202
+
203
+ comment on column gis.metadata.attribution_text is 'Атрибуція текстова';
204
+
205
+ comment on column gis.metadata.is_verify is 'Ознака чи верифіковано метадані';
206
+
207
+ comment on column gis.metadata.image is 'Прев''ю метаданих';
208
+
209
+ comment on column gis.metadata.object_id is 'ID Об''єкта';
210
+
211
+ create unique index if not exists layer_id_unique
212
+ on gis.metadata (metadata_id, layer_id);
213
+
214
+ create index if not exists gis_metadata_metadata_id_gin_idx
215
+ on gis.metadata using gin (metadata_id public.gin_trgm_ops);
216
+
217
+ create index if not exists gis_metadata_metadata_key_gin_idx_lower
218
+ on gis.metadata using gin (lower(metadata_key) public.gin_trgm_ops);
219
+
220
+ create index if not exists gis_metadata_abstract_gin_idx
221
+ on gis.metadata using gin (abstract public.gin_trgm_ops);
222
+
223
+ create index if not exists gis_metadata_abstract_gin_idx_lower
224
+ on gis.metadata using gin (lower(abstract) public.gin_trgm_ops);
225
+
226
+ create index if not exists gis_metadata_metadata_id_gin_idx_lower
227
+ on gis.metadata using gin (lower(metadata_id) public.gin_trgm_ops);
228
+
229
+ create index if not exists gis_metadata_name_gin_idx_lower
230
+ on gis.metadata using gin (lower(name) public.gin_trgm_ops);
231
+
232
+ create index if not exists gis_metadata_metadata_key_gin_idx
233
+ on gis.metadata using gin (metadata_key public.gin_trgm_ops);
234
+
235
+ create index if not exists gis_metadata_layer_id_gin_idx
236
+ on gis.metadata using gin (layer_id public.gin_trgm_ops);
237
+
238
+ create index if not exists gis_metadata_layer_id_gin_idx_lower
239
+ on gis.metadata using gin (lower(layer_id) public.gin_trgm_ops);
240
+
241
+ create index if not exists gis_metadata_name_gin_idx
242
+ on gis.metadata using gin (name public.gin_trgm_ops);
243
+
244
+ create index if not exists gis_metadata_purpose_gin_idx
245
+ on gis.metadata using gin (purpose public.gin_trgm_ops);
246
+
247
+ create index if not exists gis_metadata_source_gin_idx_lower
248
+ on gis.metadata using gin (lower(source) public.gin_trgm_ops);
249
+
250
+ create index if not exists gis_metadata_purpose_gin_idx_lower
251
+ on gis.metadata using gin (lower(purpose) public.gin_trgm_ops);
252
+
253
+ create index if not exists gis_metadata_use_constraints_gin_idx_lower
254
+ on gis.metadata using gin (lower(use_constraints) public.gin_trgm_ops);
255
+
256
+ create index if not exists gis_metadata_access_constraints_gin_idx
257
+ on gis.metadata using gin (access_constraints public.gin_trgm_ops);
258
+
259
+ create index if not exists gis_metadata_source_gin_idx
260
+ on gis.metadata using gin (source public.gin_trgm_ops);
261
+
262
+ create index if not exists gis_metadata_use_constraints_gin_idx
263
+ on gis.metadata using gin (use_constraints public.gin_trgm_ops);
264
+
265
+ create index if not exists gis_metadata_topic_category_gin_idx
266
+ on gis.metadata using gin (topic_category public.gin_trgm_ops);
267
+
268
+ create index if not exists gis_metadata_license_gin_idx
269
+ on gis.metadata using gin (license public.gin_trgm_ops);
270
+
271
+ create index if not exists gis_metadata_access_constraints_gin_idx_lower
272
+ on gis.metadata using gin (lower(access_constraints) public.gin_trgm_ops);
273
+
274
+ create index if not exists gis_metadata_license_gin_idx_lower
275
+ on gis.metadata using gin (lower(license) public.gin_trgm_ops);
276
+
277
+ create index if not exists gis_metadata_topic_category_gin_idx_lower
278
+ on gis.metadata using gin (lower(topic_category) public.gin_trgm_ops);
279
+
280
+ create index if not exists gis_metadata_accuracy_statement_gin_idx
281
+ on gis.metadata using gin (accuracy_statement public.gin_trgm_ops);
282
+
283
+ create index if not exists gis_metadata_accuracy_statement_gin_idx_lower
284
+ on gis.metadata using gin (lower(accuracy_statement) public.gin_trgm_ops);
285
+
286
+ create index if not exists gis_metadata_update_frequency_gin_idx
287
+ on gis.metadata using gin (update_frequency public.gin_trgm_ops);
288
+
289
+ create index if not exists gis_metadata_update_frequency_gin_idx_lower
290
+ on gis.metadata using gin (lower(update_frequency) public.gin_trgm_ops);
291
+
292
+ create index if not exists gis_metadata_scale_gin_idx_lower
293
+ on gis.metadata using gin (lower(scale) public.gin_trgm_ops);
294
+
295
+ create index if not exists gis_metadata_encoding_gin_idx_lower
296
+ on gis.metadata using gin (lower(encoding) public.gin_trgm_ops);
297
+
298
+ create index if not exists gis_metadata_language_gin_idx
299
+ on gis.metadata using gin (language public.gin_trgm_ops);
300
+
301
+ create index if not exists gis_metadata_katottg_gin_idx
302
+ on gis.metadata using gin (katottg public.gin_trgm_ops);
303
+
304
+ create index if not exists gis_metadata_language_gin_idx_lower
305
+ on gis.metadata using gin (lower(language) public.gin_trgm_ops);
306
+
307
+ create index if not exists gis_metadata_region_gin_idx_lower
308
+ on gis.metadata using gin (lower(region) public.gin_trgm_ops);
309
+
310
+ create index if not exists gis_metadata_region_gin_idx
311
+ on gis.metadata using gin (region public.gin_trgm_ops);
312
+
313
+ create index if not exists gis_metadata_katottg_gin_idx_lower
314
+ on gis.metadata using gin (lower(katottg) public.gin_trgm_ops);
315
+
316
+ create index if not exists gis_metadata_size_btree_idx
317
+ on gis.metadata (size);
318
+
319
+ create index if not exists gis_metadata_standards_gin_idx
320
+ on gis.metadata using gin (standards public.gin_trgm_ops);
321
+
322
+ create index if not exists gis_metadata_standards_gin_idx_lower
323
+ on gis.metadata using gin (lower(standards) public.gin_trgm_ops);
324
+
325
+ create index if not exists gis_metadata_service_type_gin_idx
326
+ on gis.metadata using gin (service_type public.gin_trgm_ops);
327
+
328
+ create index if not exists gis_metadata_service_type_gin_idx_lower
329
+ on gis.metadata using gin (lower(service_type) public.gin_trgm_ops);
330
+
331
+ create index if not exists gis_metadata_scale_gin_idx
332
+ on gis.metadata using gin (scale public.gin_trgm_ops);
333
+
334
+ create index if not exists gis_metadata_geom_4326_idx
335
+ on gis.metadata using gist (st_transform(geom, 4326));
336
+
337
+ create index if not exists gis_metadata_geom_area_true_idx
338
+ on gis.metadata (st_area(geom::geography, true));
339
+
340
+ create index if not exists gis_metadata_encoding_gin_idx
341
+ on gis.metadata using gin (encoding public.gin_trgm_ops);
342
+
343
+ create index if not exists gis_metadata_geom_gist1_idx
344
+ on gis.metadata using gist (geom);
345
+
346
+ create index if not exists gis_metadata_geom_area_idx
347
+ on gis.metadata (st_area(st_transform(geom, 3857)));
348
+
349
+ create index if not exists gis_metadata_date_updated_btree_idx
350
+ on gis.metadata (date_updated);
351
+
352
+ create index if not exists gis_metadata_year_btree_idx
353
+ on gis.metadata (year);
354
+
355
+ create index if not exists gis_metadata_date_created_btree_idx
356
+ on gis.metadata (date_created);
357
+
358
+ create index if not exists gis_metadata_data_owner_code_gin_idx
359
+ on gis.metadata using gin (data_owner_code public.gin_trgm_ops);
360
+
361
+ create index if not exists gis_metadata_data_owner_code_gin_idx_lower
362
+ on gis.metadata using gin (lower(data_owner_code) public.gin_trgm_ops);
363
+
364
+ create index if not exists gis_metadata_data_producer_code_gin_idx
365
+ on gis.metadata using gin (data_producer_code public.gin_trgm_ops);
366
+
367
+ create index if not exists gis_metadata_data_producer_code_gin_idx_lower
368
+ on gis.metadata using gin (lower(data_producer_code) public.gin_trgm_ops);
369
+
370
+ create index if not exists gis_metadata_updated_by_gin_idx_lower
371
+ on gis.metadata using gin (lower(updated_by) public.gin_trgm_ops);
372
+
373
+ create index if not exists gis_metadata_updated_by_gin_idx
374
+ on gis.metadata using gin (updated_by public.gin_trgm_ops);
375
+
376
+ create index if not exists gis_metadata_created_by_gin_idx
377
+ on gis.metadata using gin (created_by public.gin_trgm_ops);
378
+
379
+ create index if not exists gis_metadata_updated_at_btree_idx
380
+ on gis.metadata (updated_at);
381
+
382
+ create index if not exists gis_metadata_created_by_gin_idx_lower
383
+ on gis.metadata using gin (lower(created_by) public.gin_trgm_ops);
384
+
385
+ create index if not exists gis_metadata_created_at_btree_idx
386
+ on gis.metadata (created_at);
387
+
388
+ create index if not exists gis_metadata_contact_id_btree_idx
389
+ on gis.metadata (contact_id);
390
+
391
+ create index if not exists gis_metadata_layer_id_btree_idx
392
+ on gis.metadata (layer_id);
393
+
394
+ create index if not exists gis_metadata_topic_category_btree_idx
395
+ on gis.metadata (topic_category);
396
+
397
+ create index if not exists gis_metadata_resource_level_btree_idx
398
+ on gis.metadata (resource_level);
399
+
400
+ create index if not exists gis_metadata_metadata_owner_id_trgm_idx
401
+ on gis.metadata using gin (metadata_owner_id public.gin_trgm_ops);
402
+
403
+ create index if not exists gis_metadata_metadata_producer_id_trgm_idx
404
+ on gis.metadata using gin (metadata_producer_id public.gin_trgm_ops);
405
+
406
+ create index if not exists gis_metadata_frequency_update_btree_idx
407
+ on gis.metadata (frequency_update);
408
+
409
+ create index if not exists gis_metadata_conditions_access_btree_idx
410
+ on gis.metadata (conditions_access);
411
+
412
+ alter table gis.metadata add column if not exists producer text;
413
+ alter table gis.metadata add column if not exists group_id text;
414
+ alter table gis.metadata add column if not exists license text;
415
+ alter table gis.metadata add column if not exists type text;
416
+ alter table gis.metadata alter column data_owner_code drop not null;