Jifty::Model::Schema - Tracks in-db schema version
my $app = Jifty->new(config_file => "$ProjectRoot/etc/config.yml"); my $schema = Jifty::Model::Schema->new; my $db_version = $schema->in_db;
Every Jifty application automatically inherits this table, which describes what version of the schema is in the database currently. This allows Jifty to smartly upgrade between schema versions.
Schemas are stored in the table _db_version.
_db_version
Returns the version of the schema that is stored in the database, as a version object.
Updates the version number of the schema that is stored in the database; VERSION should be a version object. Note that this does not actually update the tables and column themselves, merely the number that is recorded as the current version! See Jifty::Script::Schema for the program that updates schemas.
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.