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
fb4cecf3
Commit
fb4cecf3
authored
Mar 26, 2021
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added upgrade script
parent
e0f9a6c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
upgrade-5.0.3.0.0-5.0.3.0.1.sql
sql/postgresql/upgrade/upgrade-5.0.3.0.0-5.0.3.0.1.sql
+0
-22
No files found.
sql/postgresql/upgrade/upgrade-5.0.3.0.0-5.0.3.0.1.sql
View file @
fb4cecf3
...
...
@@ -3,28 +3,6 @@
SELECT
acs_log__debug
(
'/packages/intranet-hr/sql/postgresql/upgrade/upgrade-5.0.3.0.0-5.0.3.0.1.sql'
,
''
);
-- Add new vacation balance fields
--
create
or
replace
function
inline_0
()
returns
integer
as
$
body
$
DECLARE
v_count
integer
;
BEGIN
-- Check if colum exists in the database
select
count
(
*
)
into
v_count
from
user_tab_columns
where
lower
(
table_name
)
=
'im_employees'
and
lower
(
column_name
)
=
'vacation_balance_year'
;
IF
v_count
>
0
THEN
return
1
;
END
IF
;
alter
table
im_employees
add
vacation_balance_year
date
default
date_trunc
(
'year'
,
now
());
alter
table
im_employees
add
vacation_balance_backup_previous_year
numeric
(
12
,
2
)
default
0
.
0
;
return
0
;
END
;
$
body
$
language
'plpgsql'
;
SELECT
inline_0
();
DROP
FUNCTION
inline_0
();
update
im_component_plugins
set
component_tcl
=
'im_employee_info_component $user_id_from_search $return_url [im_opt_val -limit_to nohtml employee_view_name]'
where
plugin_name
=
'User Employee Component'
;
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