[Dbix-class] DBIC Schema to DDL

Nigel Metheringham nigel.metheringham at dev.intechnology.co.uk
Wed Feb 10 11:38:25 GMT 2010


On 10 Feb 2010, at 11:08, iain wrote:
> 
> Dave Cross wrote:
>> Is there a way to take a set of DBIx::Class schema classes and
>> (re-)generate the DDL that was originally used to generate the classes?
>> 
>>  
> I use http://search.cpan.org/~ribasushi/DBIx-Class-0.08118/lib/DBIx/Class/Schema/Versioned.pm for this

Without Versioned (which I use myself), you can just use the deploy* stuff in Schema and DBI - http://search.cpan.org/~ribasushi/DBIx-Class-0.08118/lib/DBIx/Class/Schema.pm#deploy

	Nigel.

--
[ Nigel Metheringham             Nigel.Metheringham at InTechnology.com ]
[ - Comments in this message are my own and not ITO opinion/policy - ]




More information about the DBIx-Class mailing list