Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/importer/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,14 +939,34 @@
ADD CONSTRAINT fk_plan_task_id FOREIGN KEY (plan_task_id) REFERENCES "{schemaname}"."PLAN_TASK"(plan_task_id);
"""
},
VW_PLAN={
'create': """
CREATE TABLE IF NOT EXISTS "{schemaname}"."{tablename}" (
plan_id integer,
copy boolean,
type integer,
dim_id integer,
plan_cells_id integer PRIMARY KEY,
act_id integer,
prj_id integer,
emp_id integer,
org_id integer,
fromdate date,
todate date,
status integer,
hours double precision,
costs double precision
)
"""
}
)

_CUSTOMER_SETTINGS = dict(
datapunt=dict(
tables=(
'ACT', 'EMP', 'ORG', 'JOB', 'CUST', 'CUST_CONTACT', 'EMP_CONTRACT',
'EMP_ORG', 'PRJ', 'PRJ_LINK', 'SYS_PRJ_NIV', 'HRS', 'SYS_OPT_ITM',
'VW_LABEL_PRJ'
'VW_LABEL_PRJ', 'VW_PLAN'
),
sql=pkg_resources.resource_string(
__name__, 'sql/datapunt.sql'
Expand Down