Wednesday, January 16, 2008

catalyst database updating

Catalyst is cool in that there is a helper module that will update the database class tables for you, the problem is that I keep forgetting the syntax, so here it is

script/quiz_create.pl model DB DBIC::Schema QuizDB create=static "dbi:Pg:dbname=academic;host=server.cs.plattsburgh.edu" hartdr password

DB is the name of the class in the lib/quiz/Model/ directory that represents the database in catalyst

QuizDB is the file in lib which the DB class uses to implement it.

No comments: