Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-calendar
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-calendar
Commits
bdd4b523
Commit
bdd4b523
authored
Mar 20, 2007
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed upgrade stuff
parent
2c8394e7
Pipeline
#178
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
intranet-calendar-create.sql
sql/postgresql/intranet-calendar-create.sql
+23
-3
No files found.
sql/postgresql/intranet-calendar-create.sql
View file @
bdd4b523
...
...
@@ -290,9 +290,29 @@ begin
return new;
end;'
language
'plpgsql'
;
create
trigger
im_trans_tasks_calendar_update_tr
after
insert
or
update
on
im_trans_tasks
for
each
row
execute
procedure
im_trans_tasks_calendar_update_tr
();
-- dont install trigger if there is not translation module installed
-- (upgrade from V3.1 project-consulting)
create
or
replace
function
inline_0
()
returns
integer
as
'
DECLARE
row RECORD;
v_count integer;
BEGIN
select count(*) into v_count from user_tab_columns
where lower(table_name) =
''
im_timesheet_tasks
''
and lower(column_name) =
''
project_id
''
;
IF v_count = 0 THEN return 0; END IF;
create trigger im_trans_tasks_calendar_update_tr after insert or update
on im_trans_tasks for each row
execute procedure im_trans_tasks_calendar_update_tr ();
return 0;
END;'
language
'plpgsql'
;
select
inline_0
();
drop
function
inline_0
();
-- update im_trans_tasks set end_date = end_date;
...
...
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