Jesse Vincent > Jifty-0.70824 > Jifty::Upgrade

Download:
Jifty-0.70824.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  13
Open  4
Stalled  1
View/Report Bugs
Source   Latest Release: Jifty-1.10518

NAME ^

Jifty::Upgrade - Superclass for schema/data upgrades to Jifty applicaitons

DESCRIPTION ^

Jifty::Upgrade is an abstract baseclass to use to customize schema and data upgrades that happen.

since VERSION SUB

since is meant to be called by subclasses of Jifty::Upgrade. Calling it signifies that SUB should be run when upgrading to version VERSION, after tables and columns are added, but before tables and columns are removed. If multiple subroutines are given for the same version, they are run in order that they were set up.

versions

Returns the list of versions that have been registered; this is called by the Jifty::Script::Schema tool to determine what to do while upgrading.

upgrade_to VERSION

Runs the subroutine that has been registered for the given version; if no subroutine was registered, returns a no-op subroutine.

rename table => CLASS, [column => COLUMN,] to => NAME

Used in upgrade subroutines, this executes the necessary SQL to rename the table, or column in the table, to a new name.

SEE ALSO ^

Jifty::Manual::Upgrading

syntax highlighting: