Table Creation Script

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
sagarkale

Table Creation Script

Post by sagarkale »

Hi,

I was wondering if there is any script to generate table creation php file? I am refereing to the file /Install/schemas/schema.php. It would be great to generate this type of file than everytime manually update.

Thanx in advance.

Regards,

Sagar
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Table Creation Script

Post by Ted »

Not totally sure what you mean.  To generate schema.php, I use the generatedump.php script that is in the svn repository.  I then modify it with some search/replace.  Takes about 5-10 min total.
sagarkale

Re: Table Creation Script

Post by sagarkale »

Thanx for the reply Wishy,

I think u got it right. I have a system I work on & updating its install program is always trouble because I have to keep track of changes in chema. I saw schema in CMS & thought if you guys use any script to generate this file.

Please let me know if such script exists?

Regards,

Sagar
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Table Creation Script

Post by Ted »

Here is the script I use.  It's nothing fancy.  Just dumps all of the tables in the databse...

http://svn.cmsmadesimple.org/cms/trunk/generatedump.php
Post Reply

Return to “Developers Discussion”