RFC: cleaning up the schemas

Ade Lovett ade at FreeBSD.org
Mon Jul 21 21:20:48 EDT 2008


Hi Folks,

There's an awful lot of duplication of effort in the mysql and pgsql  
schemas (and, in fact, there are a few discrepancies in the values  
inserted into the tables at the end).

To this end, I've created an utterly trivial script, that splits out  
the actual mysql/pgsql schemas, along with a number of "value" files,  
which will only have to be edited in one place.

The code can be found at http://tinderbox.lovett.com/patches/ 
sql.tar.gz -- it'll extract into a self-contained 'sql' directory --  
simply run:

	genschema mysql|pgsql

and pipe it into the appropriate mysql/pgsql code to create things.

Unless anyone sees any major issues with this, I'd like to go ahead  
and commit it, along with all the relevant documentation changes,  
prior to 3.0

-aDe



More information about the tinderbox-list mailing list