Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-tasks
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-timesheet2-tasks
Commits
486a082c
Commit
486a082c
authored
Feb 23, 2007
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added v_count for upgrade
parent
3aada142
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
6 deletions
+40
-6
intranet-timesheet2-tasks-create.sql
sql/postgresql/intranet-timesheet2-tasks-create.sql
+40
-6
No files found.
sql/postgresql/intranet-timesheet2-tasks-create.sql
View file @
486a082c
...
...
@@ -330,8 +330,25 @@ drop function inline_0 ();
-------------------------------
-- Add a new project type for the Tasks
--
insert
into
im_categories
(
CATEGORY_ID
,
CATEGORY
,
CATEGORY_TYPE
)
values
(
'100'
,
'Task'
,
'Intranet Project Type'
);
create
or
replace
function
inline_0
()
returns
integer
as
'
declare
v_count integer;
begin
select count(*) into v_count from im_categories
where category_id = 100;
IF 0 != v_count THEN return 0; END IF;
insert into im_categories (CATEGORY_ID, CATEGORY, CATEGORY_TYPE)
values ('
100
', '
Task
', '
Intranet
Project
Type
');
return 1;
end;'
language
'plpgsql'
;
select
inline_0
();
drop
function
inline_0
();
...
...
@@ -565,10 +582,27 @@ select im_component_plugin__new (
insert
into
im_biz_object_urls
(
object_type
,
url_type
,
url
)
values
(
'im_timesheet_task'
,
'view'
,
'/intranet-timesheet2-tasks/new?task_id='
);
insert
into
im_biz_object_urls
(
object_type
,
url_type
,
url
)
values
(
'im_timesheet_task'
,
'edit'
,
'/intranet-timesheet2-tasks/new?form_mode=edit&task_id='
);
create
or
replace
function
inline_0
()
returns
integer
as
'
declare
v_count integer;
begin
select count(*) into v_count from im_biz_object_urls
where object_type = '
im_timesheet_task
';
IF 0 != v_count THEN return 0; END IF;
insert into im_biz_object_urls (object_type, url_type, url) values (
'
im_timesheet_task
','
view
','
/
intranet
-
timesheet2
-
tasks
/
new
?
task_id
=
');
insert into im_biz_object_urls (object_type, url_type, url) values (
'
im_timesheet_task
','
edit
','
/
intranet
-
timesheet2
-
tasks
/
new
?
form_mode
=
edit
&
task_id
=
');
return 1;
end;'
language
'plpgsql'
;
select
inline_0
();
drop
function
inline_0
();
...
...
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