Commit 81e9ca28 authored by Frank Bergmann's avatar Frank Bergmann

- Added some debugging

parent d97b6516
......@@ -68,16 +68,16 @@ begin
end if;
end if;
-- create the attribute table if not already created
select count(*) > 0 into v_temp_p
from pg_class
select count(*) > 0 into v_temp_p from pg_class
where relname = lower(create_type__table_name);
if NOT v_temp_p and create_type__table_name is not null then
select table_name into v_supertype_table from acs_object_types
where object_type = create_type__supertype;
raise NOTICE ''content_type__create_type: table_name=%, id_column=%, supertype_table=%'',
create_type__table_name, create_type__id_column, v_supertype_table;
execute ''create table '' || create_type__table_name || '' ('' ||
create_type__id_column || '' integer constraint '' || create_type__table_name || ''_pk primary key '' ||
'' constraint '' || create_type__table_name || ''_fk references '' || v_supertype_table || '')'';
......
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