Commit 245ee7b3 authored by Frank Bergmann's avatar Frank Bergmann

- File-Storage:

  Fixed meta-information for file_storage_object object type
parent 88aaf965
......@@ -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';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment