Sqlite and plugins

Found a bug? Tell us!!
Post Reply
pylpa
Posts: 3
Joined: Sat Apr 12, 2008 4:34 pm

Sqlite and plugins

Post by pylpa »

Hello everyone

I 'm a neebie with Serendipity and I want to tell you that for me it's a great product :P . What interest me is SQlite and smarty templates : Sqlite for using it simply on a local machine, and smarty for the power of their templates.

I have some bugs with some event_plugins like faq, may be because that there no ALTER TABLE in Sqlite ??? all works fine with a MYSQL database.

Have you any solution for that ?

Thanks a lot for your reply.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Sqlite and plugins

Post by garvinhicking »

Hi!

Yeah, it's a shame that SQLite does not provide ALTER TABLe. The only solution to that is to use a tool like SQLiteAdmin and re-create the proper table.

You can also create a temporary table, create the new table with the new layout, copy all records from the temp table to the new one, delete the new temporary table and then rename the new table to the old one.

that's how the internal s9y db updates perform it, but because it's so complicated, many event plugins don't do that. Though there are only a handful of event plugins that need to ALTER TABLE. Only FAQ, Staticpage and few others.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pylpa
Posts: 3
Joined: Sat Apr 12, 2008 4:34 pm

Post by pylpa »

Thanks for your reply.

Could you tell me where i can found the database structure that i must modify.
i want to use S9Y as a cms to save ideas and notes with an easy and powerful search engine. do you think that it's a good idea or do you have another suggestion for that goal ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

It's only inside the event .php files of the correspondig plugins, you will have to "read" the code there. If you don't succeed, tell me again next week and I'll check it out for you.
i want to use S9Y as a cms to save ideas and notes with an easy and powerful search engine. do you think that it's a good idea or do you have another suggestion for that goal ?
Hm, I'm not completely sure. For things like that I often use a wiki or simple plaintext files :-D

But certainly it can be done with s9y if you like the interface :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pylpa
Posts: 3
Joined: Sat Apr 12, 2008 4:34 pm

Post by pylpa »

Thank your for your sincerity about my project (wiki, plain text files). It' true that have look before to Dokuwiki.

But i find s9y great and i will have a look to the event file...

Regards,
Post Reply