Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
categories
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
categories
Commits
94099492
Commit
94099492
authored
Oct 23, 2010
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed upgrade
parent
21510d23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
12 deletions
+27
-12
categories-init.sql
sql/postgresql/categories-init.sql
+27
-12
No files found.
sql/postgresql/categories-init.sql
View file @
94099492
...
...
@@ -50,20 +50,35 @@ drop function inline_0();
-- this should eventually be added to acs-kernel
create
or
replace
function
inline_0
()
returns
integer
as
$
body
$
DECLARE
v_count
integer
;
BEGIN
select
count
(
*
)
into
v_count
from
user_tab_columns
where
table_name
=
'ACS_NAMED_OBJECTS'
;
IF
v_count
>
0
THEN
return
1
;
END
IF
;
create
table
acs_named_objects
(
object_id
integer
not
null
constraint
acs_named_objs_pk
primary
key
constraint
acs_named_objs_object_id_fk
references
acs_objects
(
object_id
)
on
delete
cascade
,
object_name
varchar
(
200
),
package_id
integer
constraint
acs_named_objs_package_id_fk
references
apm_packages
(
package_id
)
on
delete
cascade
);
create
index
acs_named_objs_name_ix
on
acs_named_objects
(
object_name
);
create
index
acs_named_objs_package_ix
on
acs_named_objects
(
package_id
);
return
0
;
end
;
$
body
$
language
'plpgsql'
;
select
inline_0
();
drop
function
inline_0
();
create
table
acs_named_objects
(
object_id
integer
not
null
constraint
acs_named_objs_pk
primary
key
constraint
acs_named_objs_object_id_fk
references
acs_objects
(
object_id
)
on
delete
cascade
,
object_name
varchar
(
200
),
package_id
integer
constraint
acs_named_objs_package_id_fk
references
apm_packages
(
package_id
)
on
delete
cascade
);
create
index
acs_named_objs_name_ix
on
acs_named_objects
(
object_name
);
create
index
acs_named_objs_package_ix
on
acs_named_objects
(
package_id
);
create
function
inline_0
()
returns
integer
as
'
...
...
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