Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Minimize EMP table attributes #7

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
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
88 changes: 2 additions & 86 deletions src/importer/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,93 +74,10 @@
'create': """
CREATE TABLE IF NOT EXISTS "{schemaname}"."{tablename}" (
emp_id integer PRIMARY KEY,
nr character varying(20),
code character varying(20),
lastname character varying(50),
middlename character varying(10),
firstname character varying(30),
plastname character varying(50),
pmiddlename character varying(10),
displayname integer,
sex character varying(1),
initials character varying(10),
nonactive boolean,
activeforclk boolean,
birthdate date,
loginname character varying(50),
password character varying(150),
askpassword integer,
auth_id integer,
fromgroup integer,
togroup integer,
taskreg date,
empcat integer,
export integer,
address character varying(100),
zipcode character varying(10),
place character varying(50),
district character varying(50),
country character varying(50),
phone1 character varying(15),
phone2 character varying(15),
mobile1 character varying(15),
mobile2 character varying(15),
fax1 character varying(15),
fax2 character varying(15),
email1 character varying(50),
email2 character varying(50),
floor integer,
location character varying(20),
room character varying(10),
extension character varying(15),
bank character varying(25),
leasecar character varying(20),
traveldist double precision,
travelcosts double precision,
config_id integer,
refreshlocal date,
name character varying(100),
firstnames character varying(50),
leadtitle character varying(20),
trailtitle character varying(20),
addressno character varying(20),
birthplace character varying(75),
birthcountry character varying(75),
nationality character varying(50),
bsn character varying(20),
idnumber character varying(40),
mstatus integer,
mstatusdate date,
warninfo text,
medicalinfo text,
psex character varying(1),
pinitials character varying(10),
pfirstnames character varying(50),
pfirstname character varying(30),
pleadtitle character varying(20),
ptrailtitle character varying(20),
pbirthdate date,
pphone character varying(15),
startdate date,
enddate date,
jubdate date,
funcdate date,
assesdate date,
svcyears integer,
noldap integer,
pl_color integer,
idexpiredate date,
externkey character varying(50),
recipient character varying(100),
audit integer,
syncprof_id integer,
aduser integer,
changepassword integer,
dayhours double precision,
savedpassword character varying(150),
tag integer,
tagtype integer,
tagdate date
nationality character varying(50)
);
"""
},
Expand Down Expand Up @@ -951,8 +868,7 @@
sql=pkg_resources.resource_string(
__name__, 'sql/datapunt.sql'
).decode('utf-8'),
tables_to_check=["v_timetell_projectenoverzicht",
"v_timetell_projectenoverzicht_3",
tables_to_check=["v_timetell_projectenoverzicht_3",
"v_timetell_projectenoverzicht_4"]
),
dienstverlening=dict(
Expand Down
Loading