Skip to content

Commit 7de3d0a

Browse files
committed
Extract Dependency - Script Update
Forgot to add extract_dependency to the sql scripts. Working: #14
1 parent 090f486 commit 7de3d0a

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ Data integration process management made easy!
44

55
[![Coverage Status](https://coveralls.io/repos/github/OpenDataAlex/process_tracker_python/badge.svg?branch=master)](https://coveralls.io/github/OpenDataAlex/process_tracker_python?branch=master)
66
[![Build Status](https://travis-ci.org/OpenDataAlex/process_tracker_python.svg?branch=master)](https://travis-ci.org/OpenDataAlex/process_tracker_python)
7+
[![Downloads](https://pepy.tech/badge/processtracker)](https://pepy.tech/project/processtracker)
8+
[![PyPI version](https://badge.fury.io/py/processtracker.svg)](https://badge.fury.io/py/processtracker)
79
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
10+
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
811

912
This is the Python implementation of the ProcessTracker framework. ProcessTracker builds a standard framework that is
1013
tool agnostic. If you are working with data integration/cleansing processes within Python (i.e. using PySpark, Pandas, etc.)

dbscripts/mysql_process_tracker.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ create index extract_status_id
7676
create index location_type
7777
on location_lkup (location_type);
7878

79+
create table process_tracker.extract_dependency
80+
(
81+
parent_extract_id int not null,
82+
child_extract_id int not null,
83+
primary key (parent_extract_id, child_extract_id),
84+
constraint extract_dependency_fk01
85+
foreign key (parent_extract_id) references process_tracker.extract_tracking (extract_id),
86+
constraint extract_dependency_fk02
87+
foreign key (child_extract_id) references process_tracker.extract_tracking (extract_id)
88+
)
89+
comment 'Table tracking interdependencies between extract files.';
90+
7991
create table process_status_lkup
8092
(
8193
process_status_id int auto_increment

dbscripts/postgresql_process_tracker.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,22 @@ comment on column extract_tracking.extract_registration_date_time is 'The dateti
312312

313313
alter table extract_tracking owner to pt_admin;
314314

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+
315331
create table extract_process_tracking
316332
(
317333
extract_tracking_id integer not null

0 commit comments

Comments
 (0)