Skip to content

Commit 45c4697

Browse files
author
Alex Meadows
committed
process_tracker_python-83 Add extract file type and compression type
🐛 Fixing issues with SQL scripts
1 parent d9ffb57 commit 45c4697

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

dbscripts/postgresql_process_tracker.sql

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -108,34 +108,6 @@ alter table source_lkup owner to pt_admin;
108108
create unique index source_lkup_udx01
109109
on source_lkup (source_name);
110110

111-
create table source_contact
112-
(
113-
source_id integer not null
114-
constraint source_contact_fk01
115-
references source_lkup,
116-
contact_id integer not null
117-
constraint source_contact_fk02
118-
references contact_lkup,
119-
constraint source_contact_pk
120-
primary key (source_id, contact_id)
121-
);
122-
123-
alter table source_contact owner to pt_admin;
124-
125-
create table process_contact
126-
(
127-
process_id integer not null
128-
constraint process_contact_fk01
129-
references process,
130-
contact_id integer not null
131-
constraint process_contact_fk02
132-
references contact_lkup,
133-
constraint process_contact_pk
134-
primary key (process_id, contact_id)
135-
);
136-
137-
alter table process_contact owner to pt_admin;
138-
139111
create table process_status_lkup
140112
(
141113
process_status_id serial not null
@@ -631,3 +603,31 @@ comment on table process_tracker.source_object_dataset_type is 'Relationship bet
631603

632604
alter table process_tracker.source_object_dataset_type owner to pt_admin;
633605

606+
607+
create table source_contact
608+
(
609+
source_id integer not null
610+
constraint source_contact_fk01
611+
references source_lkup,
612+
contact_id integer not null
613+
constraint source_contact_fk02
614+
references contact_lkup,
615+
constraint source_contact_pk
616+
primary key (source_id, contact_id)
617+
);
618+
619+
alter table source_contact owner to pt_admin;
620+
621+
create table process_contact
622+
(
623+
process_id integer not null
624+
constraint process_contact_fk01
625+
references process,
626+
contact_id integer not null
627+
constraint process_contact_fk02
628+
references contact_lkup,
629+
constraint process_contact_pk
630+
primary key (process_id, contact_id)
631+
);
632+
633+
alter table process_contact owner to pt_admin;

0 commit comments

Comments
 (0)