Skip Menu |

This queue is for tickets about the Jifty CPAN distribution.

Report information
The Basics
Id: 19642
Status: new
Priority: 0/
Queue: Jifty

People
Owner: Nobody in particular
Requestors: nelhage [...] mit.edu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Schema creation with missing libraries
Date: Thu, 1 Jun 2006 12:19:09 -0400 (EDT)
To: bug-jifty [...] rt.cpan.org
From: Nelson Elhage <nelhage [...] MIT.EDU>
I was attemping to set up database tables for BTDT (BestPractical's internal application) using C<jifty schema --setup>, without all the required modules installed. The schema setup process proceeded, but reported errors on missing modules, as well as the inability to refer_to model classes that had not loaded properly, apparently leaving the database schema in an inconsistent state. Upon installing the required dependencies and re-running C<jifty schema --setup>, Jifty reported that the database was up-to-date, and allowed the application to start with C<jifty server>. However, the application proceeded to throw errors on inserts into the database, since some of the tables did not exist. Correct behavior is probably for C<jifty schema --setup> to error earlier in the process and fail under these circumstances, rather than leaving the database in an inconsistent state, but with metadata indicating it's been set up appropriately. - Nelson Elhage