Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2
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
1
Merge Requests
1
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
Commits
5d0fe909
Commit
5d0fe909
authored
Nov 16, 2007
by
adverbage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added v_count around components that were already there
parent
8cc4bf53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
35 deletions
+68
-35
intranet-timesheet2-create.sql
sql/postgresql/intranet-timesheet2-create.sql
+68
-35
No files found.
sql/postgresql/intranet-timesheet2-create.sql
View file @
5d0fe909
...
...
@@ -267,43 +267,76 @@ drop function inline_0 ();
create
or
replace
function
inline_0
()
returns
integer
as
'
declare
v_count integer;
begin
select count(*) into v_count
from im_component_plugins
where plugin_name =
''
Project Timesheet Component
''
;
if v_count > 0 then return 0; end if;
select im_component_plugin__new (
null, -- plugin_id
''
acs_object
''
, -- object_type
now(), -- creation_date
null, -- creation_user
null, -- creattion_ip
null, -- context_id
''
Project Timesheet Component
''
, -- plugin_name
''
intranet-timesheet
''
, -- package_name
''
right
''
, -- location
''
/intranet/projects/view
''
, -- page_url
null, -- view_name
50, -- sort_order
''
im_timesheet_project_component $user_id $project_id
''
,
''
_ intranet-timesheet2.Timesheet
''
);
return 0;
end;'
language
'plpgsql'
;
select
inline_0
();
drop
function
inline_0
();
create
or
replace
function
inline_0
()
returns
integer
as
'
declare
v_count integer;
begin
select count(*) into v_count
from im_component_plugins
where plugin_name =
''
Home Timesheet Component
''
;
if v_count > 0 then return 0; end if;
select im_component_plugin__new (
null, -- plugin_id
''
acs_object
''
, -- object_type
now(), -- creation_date
null, -- creation_user
null, -- creattion_ip
null, -- context_id
''
Home Timesheet Component
''
, -- plugin_name
''
intranet-timesheet
''
, -- package_name
''
right
''
, -- location
''
/intranet/index
''
, -- page_url
null, -- view_name
80, -- sort_order
''
im_timesheet_home_component $user_id
''
,
''
_ intranet-timesheet2.Timesheet
''
);
return 0;
end;'
language
'plpgsql'
;
select
inline_0
();
drop
function
inline_0
();
select
im_component_plugin__new
(
null
,
-- plugin_id
'acs_object'
,
-- object_type
now
(),
-- creation_date
null
,
-- creation_user
null
,
-- creattion_ip
null
,
-- context_id
'Project Timesheet Component'
,
-- plugin_name
'intranet-timesheet'
,
-- package_name
'right'
,
-- location
'/intranet/projects/view'
,
-- page_url
null
,
-- view_name
50
,
-- sort_order
'im_timesheet_project_component $user_id $project_id '
,
'_ intranet-timesheet2.Timesheet'
);
select
im_component_plugin__new
(
null
,
-- plugin_id
'acs_object'
,
-- object_type
now
(),
-- creation_date
null
,
-- creation_user
null
,
-- creattion_ip
null
,
-- context_id
'Home Timesheet Component'
,
-- plugin_name
'intranet-timesheet'
,
-- package_name
'right'
,
-- location
'/intranet/index'
,
-- page_url
null
,
-- view_name
80
,
-- sort_order
'im_timesheet_home_component $user_id'
,
'intranet-timesheet2.Timesheet'
);
\
i
intranet
-
absences
-
create
.
sql
\
i
..
/
common
/
intranet
-
timesheet
-
common
.
sql
...
...
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