garvinhicking wrote:Thanks a lot. If you happen to find the "real" code, I will commit your patch. Sadly I don't do postgreSQL, and neither seems to do the author of the plugin change, so I'm bound to your help
Thanks a lot,
Garvin
Well, I figured out how to do it. You
need to do it in 3 steps. Here they are:
Code: Select all
CREATE TABLE {$serendipity['dbPrefix']}entrytags (entryid integer not null, tag varchar(50), primary key (entryid, tag));
CREATE INDEX entryindex ON {$serendipity['dbPrefix']}entrytags(entryid);
CREATE INDEX tagIndex ON {$serendipity['dbPrefix']}entrytags(tag);
I implemented that by hand, and then edited an entry to add some tags. They were inserted into the database properly, and I was able to use the sidebar plugin to search by them. I haven't attempted to modify them for that entry, but if you want to check it out, my blog is at
mjxg.com.
I am not sure how you want to implement that into the code, but that will work with postgres
-Mike