Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
file-storage
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
file-storage
Commits
245ee7b3
Commit
245ee7b3
authored
Jun 23, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- File-Storage:
Fixed meta-information for file_storage_object object type
parent
88aaf965
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
upgrade-4.0.2.0.0-4.0.2.0.1.sql
sql/postgresql/upgrade/upgrade-4.0.2.0.0-4.0.2.0.1.sql
+18
-1
No files found.
sql/postgresql/upgrade/upgrade-4.0.2.0.0-4.0.2.0.1.sql
View file @
245ee7b3
...
...
@@ -3,7 +3,8 @@
-- Fix metadata from file_storage_object
update
acs_object_types
set
table_name
=
'file_storage_objectx'
,
id_column
=
'object_id'
id_column
=
'object_id'
,
name_method
=
'file_storage_object__name'
where
object_type
=
'file_storage_object'
;
...
...
@@ -14,3 +15,19 @@ delete from cr_text;
alter
table
cr_text
disable
trigger
cr_text_tr
;
insert
into
cr_text
(
text_data
)
values
(
''
);
alter
table
cr_text
enable
trigger
cr_text_tr
;
create
or
replace
function
file_storage_object__name
(
integer
)
returns
varchar
as
$
body
$
DECLARE
p_item_id
alias
for
$
1
;
v_name
varchar
;
BEGIN
select
name
into
v_name
from
file_storage_objectx
where
object_id
=
p_item_id
;
return
v_name
;
end
;
$
body
$
language
'plpgsql'
;
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