I would like to use SQLite

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
100rk

I would like to use SQLite

Post by 100rk »

Does any adodb-specialist know, how to modify CMSMS?
Thanks!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

I would like to use SQLite

Post by Ted »

I would love sqlite support... however...

I use the adodb extension Data Dictionary to create tables and such and have them be cross platform. There is no data dictionary driver for Sqlite, I'm sure because they don't support some stuff like the ALTER command. Until someone writes that driver, you're kind of out of luck.

If you can get the tables created, then it's just a matter of grabbing the regular adodb sqlite driver, putting it into lib/adodb/drivers dir and changing the dbms line in config.php to 'sqlite'.
100rk

I would like to use SQLite

Post by 100rk »

...and putting file 'datadict-generic.inc.php' into 'lib/adodb/datadict' also...

Thanks Wishy,

You are right - cross platform is important and nobody knows anything about usage sql command 'ALTER TABLE' (for upgrade scripts) in future... But You (and all of us) can use 'ChangeTableSQL($tabname, $flds)' and 'AlterColumnSQL($tabname, $flds)' ADODB functions instead of SQL 'ALTER TABLE' :-)

I have no time for investigation about '$taboptarray = array('mysql' => 'TYPE=MyISAM');' from most of modules in ADODB manual right now, but I will do it. You know, to be prefectly honest I was hoping for full SQLite support :) include installation/upgrade, and I was waiting for any how-to experiences without necessity write my own MySQL -> SQLite script.

So, I am thinking about some module named 'Migration', because this strict cross-platform rule is important only in installation/upgrade time :-)
100rk

I would like to use SQLite

Post by 100rk »

Oh, I see I was wrong with ChangeTableSQL ang AlterColumnSQL command....

So module 'Migration' is in my todo list :)
cyberman

Re: I would like to use SQLite

Post by cyberman »

Are there some news for migration module?
Post Reply

Return to “Developers Discussion”