Skip to content

Commit 45b9897

Browse files
author
Alex Meadows
committed
process_tracker_python-86 Add Source Object Attribute Lookup
1 parent 59a4867 commit 45b9897

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

dbscripts/mysql_process_tracker.sql

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ create table location_lkup
109109
foreign key (location_type_id) references location_type_lkup (location_type_id)
110110
);
111111

112+
112113
create table extract_tracking
113114
(
114115
extract_id int auto_increment
@@ -123,19 +124,26 @@ create table extract_tracking
123124
extract_load_low_date_time datetime null comment 'The lowest datetime of the data set as noted when loading the data file. Should match the extract_write_low_date_time.',
124125
extract_load_high_date_time datetime null comment 'The highest datetime of the data set as noted when loading the data file. Should match the extract_load_high_date_time.',
125126
extract_load_record_count int null comment 'The record count of the data set when loading the data file.',
127+
extract_compression_type_id int null,
128+
extract_filetype_id int null,
126129
constraint extract_filename
127130
unique (extract_filename),
131+
constraint extract_tracking_fk03
132+
foreign key (extract_compression_type_id) references extract_compression_type_lkup (extract_compression_type_id),
133+
constraint extract_tracking_fk04
134+
foreign key (extract_filetype_id) references process_tracker.extract_filetype_lkup (extract_filetype_id),
128135
constraint extract_tracking_ibfk_1
129-
foreign key (extract_location_id) references location_lkup (location_id),
136+
foreign key (extract_location_id) references process_tracker.location_lkup (location_id),
130137
constraint extract_tracking_ibfk_2
131-
foreign key (extract_status_id) references extract_status_lkup (extract_status_id)
138+
foreign key (extract_status_id) references process_tracker.extract_status_lkup (extract_status_id)
132139
);
133140

134141
create index extract_location_id
135-
on extract_tracking (extract_location_id);
142+
on process_tracker.extract_tracking (extract_location_id);
136143

137144
create index extract_status_id
138-
on extract_tracking (extract_status_id);
145+
on process_tracker.extract_tracking (extract_status_id);
146+
139147

140148
create table process_tracker.extract_dependency
141149
(

dbscripts/postgresql_process_tracker.sql

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,21 @@ create unique index location_lkup_udx01
358358
create unique index location_lkup_udx02
359359
on location_lkup (location_path);
360360

361+
create table process_tracker.extract_compression_type_lkup
362+
(
363+
extract_compression_type_id serial not null
364+
constraint extract_compression_type_lkup_pk
365+
primary key,
366+
extract_compression_type varchar(25) not null
367+
);
368+
369+
alter table process_tracker.extract_compression_type_lkup owner to pt_admin;
370+
371+
create unique index extract_compression_type_lkup_extract_compression_type_uindex
372+
on process_tracker.extract_compression_type_lkup (extract_compression_type);
373+
374+
375+
361376
create table extract_tracking
362377
(
363378
extract_id serial not null

0 commit comments

Comments
 (0)