[Dbix-class] DBIC Schema to DDL

Dave Cross dave at dave.org.uk
Wed Feb 10 11:45:31 GMT 2010


On 02/10/2010 11:08 AM, 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

See, I'd looked at that and decided that it worked on DDL files.

But now, I've gone back and actually _read_ the documentation - and
everything works fine.

Thanks for your help. I now have a database[1].

Cheers,

Dave...

[1] And, perhaps more usefully, no further need to put my DDL in source
code control :)



More information about the DBIx-Class mailing list