Hi Guys, I found out the issue here:)
Apparently, there is a note towards the end of the doc: *NOTE:* Be sure you run the script/myapp_server.pl command from the 'base' directory of your application, not inside the script directory itself or it will not be able to locate the myapp.db database file. You can use a fully qualified or a relative path to locate the database file, but we did not specify that when we ran the model helper earlier. Regards Guru On Wed, Aug 1, 2012 at 7:17 PM, Guruprasad Kulkarni <guruprasa...@gmail.com>wrote: > Hi All, > > I am trying to learn Catalyst framework, by following the introduction > modules available on CPAN. I am doing this on strawberry perl, on my PC. > Also, I am using SQLite and have created myapp.db. > > While trying to create a model, I get the below error: > > \strawberry\perl\bin\MyApp\script>myapp_create.pl model DB DBIC::Schema > MyApp::Schema create=static dbi:SQLite:myapp.db on_connect_do="PRAGMA > foreign_keys = ON" > exists "D:\strawberry\perl\bin\MyApp\lib\MyApp\Model" > exists "D:\strawberry\perl\bin\MyApp\t" > Dumping manual schema for MyApp::Schema to directory > D:\strawberry\perl\bin\MyApp\lib ... > Schema dump completed. > WARNING: No tables found, did you forget to specify db_schema? > exists "D:\strawberry\perl\bin\MyApp\lib\MyApp\Model\DB.pm" > > ------------------------------------------------------------------------------------------------------------------------------- > > The instruction says "make sure your myapp.db database file is in the > application's topmost directory." > > I tried placing myapp.db in all possible directories but it is not > working. I understand this warning is coming from > Catalyst::Helper::Model::DBIC::Schema.pm, > but I am not able to troubleshoot beyond that. > > Can someone tell me where am I suppose to keep the myapp.db file? > > Regards > Guru >