Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-hr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-hr
Commits
cae34a84
Commit
cae34a84
authored
Jul 21, 2005
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- changed the files from dos to Unix format
parent
40a14d70
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1068 additions
and
1068 deletions
+1068
-1068
intranet-hr-backup.sql
sql/common/intranet-hr-backup.sql
+227
-227
intranet-hr-common.sql
sql/common/intranet-hr-common.sql
+151
-151
intranet-hr-create.sql
sql/oracle/intranet-hr-create.sql
+307
-307
intranet-hr-create.sql
sql/postgresql/intranet-hr-create.sql
+301
-301
intranet-hr-drop.sql
sql/postgresql/intranet-hr-drop.sql
+67
-67
upgrade-3.0.alpha3-3.0.0.sql
sql/postgresql/upgrade/upgrade-3.0.alpha3-3.0.0.sql
+15
-15
No files found.
sql/common/intranet-hr-backup.sql
View file @
cae34a84
This diff is collapsed.
Click to expand it.
sql/common/intranet-hr-common.sql
View file @
cae34a84
This diff is collapsed.
Click to expand it.
sql/oracle/intranet-hr-create.sql
View file @
cae34a84
This diff is collapsed.
Click to expand it.
sql/postgresql/intranet-hr-create.sql
View file @
cae34a84
This diff is collapsed.
Click to expand it.
sql/postgresql/intranet-hr-drop.sql
View file @
cae34a84
-- /packages/intranet-hr/sql/oracle/intranet-hr-drop.sql
--
-- Project/Open HR Module, fraber@fraber.de, 030828
-- A complete revision of June 1999 by dvr@arsdigita.com
--
-- Copyright (C) 1999-2004 ArsDigita, Frank Bergmann and others
--
-- This program is free software. You can redistribute it
-- and/or modify it under the terms of the GNU General
-- Public License as published by the Free Software Foundation;
-- either version 2 of the License, or (at your option)
-- any later version. This program is distributed in the
-- hope that it will be useful, but WITHOUT ANY WARRANTY;
-- without even the implied warranty of MERCHANTABILITY or
-- FITNESS FOR A PARTICULAR PURPOSE.
-- See the GNU General Public License for more details.
-----------------------------------------------------
-- Drop menus and components defined by the module
-- BEGIN
select
im_menu__del_module
(
'intranet-hr'
);
select
im_component_plugin__del_module
(
'intranet-hr'
);
-- END;
-- show errors;
-- Delete the employees_list view so that /intranet/users/ is going
-- to show the regular users_list view again.
delete
from
im_view_columns
where
view_id
>=
55
and
view_id
<=
59
;
delete
from
im_views
where
view_id
>=
55
and
view_id
<=
59
;
drop
table
im_emp_checkpoint_checkoffs
;
drop
table
im_employee_checkpoints
;
drop
sequence
im_employee_checkpoint_id_seq
;
drop
view
im_employees_active
;
drop
table
im_employees
;
drop
function
im_supervises_p
(
integer
,
integer
);
-- before remove priviliges remove granted permissions
create
or
replace
function
inline_revoke_permission
(
varchar
)
returns
integer
as
'
DECLARE
p_priv_name alias for $1;
BEGIN
lock table acs_permissions_lock;
delete from acs_permissions
where privilege = p_priv_name;
delete from acs_privilege_hierarchy
where child_privilege = p_priv_name;
return 0;
end;'
language
'plpgsql'
;
-- begin
select
inline_revoke_permission
(
'view_hr'
);
select
acs_privilege__drop_privilege
(
'view_hr'
);
-- commit;
-- delete categories from 450 to 455
delete
from
im_category_hierarchy
where
(
parent_id
>=
3700
and
parent_id
<
3799
)
or
(
child_id
>=
3700
and
child_id
<
3799
);
-- /packages/intranet-hr/sql/oracle/intranet-hr-drop.sql
--
-- Project/Open HR Module, fraber@fraber.de, 030828
-- A complete revision of June 1999 by dvr@arsdigita.com
--
-- Copyright (C) 1999-2004 ArsDigita, Frank Bergmann and others
--
-- This program is free software. You can redistribute it
-- and/or modify it under the terms of the GNU General
-- Public License as published by the Free Software Foundation;
-- either version 2 of the License, or (at your option)
-- any later version. This program is distributed in the
-- hope that it will be useful, but WITHOUT ANY WARRANTY;
-- without even the implied warranty of MERCHANTABILITY or
-- FITNESS FOR A PARTICULAR PURPOSE.
-- See the GNU General Public License for more details.
-----------------------------------------------------
-- Drop menus and components defined by the module
-- BEGIN
select
im_menu__del_module
(
'intranet-hr'
);
select
im_component_plugin__del_module
(
'intranet-hr'
);
-- END;
-- show errors;
-- Delete the employees_list view so that /intranet/users/ is going
-- to show the regular users_list view again.
delete
from
im_view_columns
where
view_id
>=
55
and
view_id
<=
59
;
delete
from
im_views
where
view_id
>=
55
and
view_id
<=
59
;
drop
table
im_emp_checkpoint_checkoffs
;
drop
table
im_employee_checkpoints
;
drop
sequence
im_employee_checkpoint_id_seq
;
drop
view
im_employees_active
;
drop
table
im_employees
;
drop
function
im_supervises_p
(
integer
,
integer
);
-- before remove priviliges remove granted permissions
create
or
replace
function
inline_revoke_permission
(
varchar
)
returns
integer
as
'
DECLARE
p_priv_name alias for $1;
BEGIN
lock table acs_permissions_lock;
delete from acs_permissions
where privilege = p_priv_name;
delete from acs_privilege_hierarchy
where child_privilege = p_priv_name;
return 0;
end;'
language
'plpgsql'
;
-- begin
select
inline_revoke_permission
(
'view_hr'
);
select
acs_privilege__drop_privilege
(
'view_hr'
);
-- commit;
-- delete categories from 450 to 455
delete
from
im_category_hierarchy
where
(
parent_id
>=
3700
and
parent_id
<
3799
)
or
(
child_id
>=
3700
and
child_id
<
3799
);
delete
from
im_categories
where
category_id
>=
3700
and
category_id
<
3799
;
\ No newline at end of file
sql/postgresql/upgrade/upgrade-3.0.alpha3-3.0.0.sql
View file @
cae34a84
-- /packages/intranet-hr/sql/xxx/upgrade-3.0.alpha3-3.0.0.sql
--
-- Copyright (c) 2003-2004 Project/Open
--
-- All rights reserved. Please check
-- http://www.project-open.com/license/ for details.
--
-- @author frank.bergmann@project-open.com
alter
table
im_employees
add
hourly_cost
numeric
(
12
,
3
)
;
insert
into
im_view_columns
(
column_id
,
view_id
,
column_name
,
column_render_tcl
,
sort_order
)
values
(
5607
,
56
,
'Hourly Cost'
,
'$hourly_cost'
,
07
);
-- /packages/intranet-hr/sql/xxx/upgrade-3.0.alpha3-3.0.0.sql
--
-- Copyright (c) 2003-2004 Project/Open
--
-- All rights reserved. Please check
-- http://www.project-open.com/license/ for details.
--
-- @author frank.bergmann@project-open.com
alter
table
im_employees
add
hourly_cost
numeric
(
12
,
3
)
;
insert
into
im_view_columns
(
column_id
,
view_id
,
column_name
,
column_render_tcl
,
sort_order
)
values
(
5607
,
56
,
'Hourly Cost'
,
'$hourly_cost'
,
07
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment