@@ -258,6 +258,9 @@ comment on table location_type_lkup is 'Listing of location types';
258258
259259alter table location_type_lkup owner to pt_admin;
260260
261+ create unique index location_type_lkup_udx01
262+ on location_type_lkup (location_type_name);
263+
261264create table location_lkup
262265(
263266 location_id serial not null
@@ -312,22 +315,6 @@ comment on column extract_tracking.extract_registration_date_time is 'The dateti
312315
313316alter table extract_tracking owner to pt_admin;
314317
315- create table process_tracking .extract_dependency
316- (
317- parent_extract_id integer not null
318- constraint extract_dependency_fk01
319- references process_tracking .extract_tracking ,
320- child_extract_id integer not null
321- constraint extract_dependency_fk02
322- references process_tracking .extract_tracking ,
323- constraint extract_dependency_pk
324- primary key (parent_extract_id, child_extract_id)
325- );
326-
327- comment on table process_tracking.extract_dependency is ' Table tracking interdependencies between extract files.' ;
328-
329- alter table process_tracking .extract_dependency owner to pt_admin;
330-
331318create table extract_process_tracking
332319(
333320 extract_tracking_id integer not null
@@ -348,9 +335,6 @@ comment on table extract_process_tracking is 'Showing which processes have impac
348335
349336alter table extract_process_tracking owner to pt_admin;
350337
351- create unique index location_type_lkup_udx01
352- on location_type_lkup (location_type_name);
353-
354338create table process_source
355339(
356340 source_id integer not null
@@ -398,3 +382,20 @@ alter table system_lkup owner to pt_admin;
398382
399383create unique index system_lkup_system_key_uindex
400384 on system_lkup (system_key);
385+
386+ create table extract_dependency
387+ (
388+ parent_extract_id integer not null
389+ constraint extract_dependency_fk01
390+ references extract_tracking,
391+ child_extract_id integer not null
392+ constraint extract_dependency_fk02
393+ references extract_tracking,
394+ constraint extract_dependency_pk
395+ primary key (parent_extract_id, child_extract_id)
396+ );
397+
398+ comment on table extract_dependency is ' Table tracking interdependencies between extract files.' ;
399+
400+ alter table extract_dependency owner to pt_admin;
401+
0 commit comments