I have been working on this for a while and have tried a number of
things none seem to work, couls anyone be kind enough to help on this
please.
The error is
psql:wp-slim-create10.sql:467: ERROR: -20000: Content type
cr_wp_presentations_audience does not exist in
content_type.create_attribute
The Code is:
create function inline_4 ()
returns integer as'
declare
attr_id acs_attributes.attribute_id%TYPE;
begin
attr_id := content_type__create_attribute (
''cr_wp_presentation_audience'',
''presentation_id'',
''integer'',
''Prsentation ID'',
''Presentation IDs'',
null,
null,
''integer''
);
attr_id := content_type__create_attribute (
''cr_wp_presentation_background'',
''presentation_id'',
''integer'',
''Prsentation ID'',
''Presentation IDs'',
null,
null,
''integer''
);
attr_id := content_type__create_attribute (
''cr_wp_slide_preamble'',
''slide_id'',
''integer'',
''Slide ID'',
''Slide IDs'',
null,
null,
''integer''
);
attr_id := content_type__create_attribute (
''cr_wp_slide_postamble'',
''slide_id'',
''integer'',
''Slide ID'',
''Slide IDs'',
null,
null,
''integer''
);
attr_id := content_type__create_attribute (
''cr_wp_slide_bullet_items'',
''slide_id'',
''integer'',
''Slide ID'',
''Slide IDs'',
null,
null,
''integer''
);
return 0;
end;' language 'plpgsql';
select inline_4 ();
drop function inline_4 ();