Reverse engineer database schema from DBIx::Class
Zbigniew Łukasiak
zzbbyy at gmail.com
Thu Jul 5 10:58:51 BST 2012
On Thu, Jul 5, 2012 at 11:47 AM, Shantanu Bhadoria <shantanu at cpan.org> wrote:
> Hey guys,
>
> I have been recently working a nacent project. I spent two days creating a
> db structure for the project with all foreign keys and such and created a
> DB from it, then I generated schema result classes from the database using
> DBIx::Class. Then in a stupid move I deleted my db by accident and I am now
> left with only the schema classes.I didnt really have any data in the db
> but is there a way to create a DB schema sql back from DBIx::Class Result
> classes? I fear I know the answer but I thought I might as well ask in case
> someone had made the same mistake before me.
Have a look at:
http://search.cpan.org/~arodland/DBIx-Class-0.08196/lib/DBIx/Class/Schema.pm#deploy
--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/
More information about the london.pm
mailing list