Hi Everyone
I am having some problems witht he droping and creating of 'type'. I
was hoping someone could point me in the right direction as I have no
idea what I doing wrong.
The create code looks like this:
create table cr_wp_presentations_audience (
id integer
references cr_revisions,
presentation_id integer
constraint cr_wp_paud_pid_nn
not null
constraint cr_wp_paud_pid_fk
references cr_wp_presentations
);
...
begin;
select content_type__create_type (
'cr_wp_presentation_audience',
'content_revision',
' WimpyPoint Presentation Audience',
'WimpyPoint Presentation Audience',
'cr_wp_presentations_audience',
'id',
null
);
end;
And the drop code looks like this:
begin;
select content_type__drop_type(
'cr_wp_presentation_audience',
'f',
'f'
);
end;
The Error I am getting is:
psql:wp-slim-create10.sql:176: ERROR: Attempt to insert rule
"_RETcr_wp_presentations_audienc" failed: already exists
I have tried a number of different ways and such but still - no luck.
Would someone know what is going on?
Thanks
Jack