Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    DBIx::Class::Schema::Versioned 0.08195

    Download button

    No screenshots available
    Downloads: 479  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.6/5)
    8 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jess Robinson and Luke Saunders | More programs
    Perl Artistic License / FREE
    August 6th, 2008, 13:30 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    DBIx::Class::Schema::Versioned description

    A DBIx::Class::Schema plugin for schema upgrades.

    DBIx::Class::Schema::Versioned is a DBIx::Class::Schema plugin for schema upgrades.

    SYNOPSIS

    package Library::Schema;
    use base qw/DBIx::Class::Schema/;
    # load Library::Schema::CD, Library::Schema::Book, Library::Schema::DVD
    __PACKAGE__->load_classes(qw/CD Book DVD/);

    __PACKAGE__->load_components(qw/+DBIx::Class::Schema::Versioned/);
    __PACKAGE__->upgrade_directory('/path/to/upgrades/');
    __PACKAGE__->backup_directory('/path/to/backups/');


    This module is a component designed to extend DBIx::Class::Schema classes, to enable them to upgrade to newer schema layouts. To use this module, you need to have called create_ddl_dir on your Schema to create your upgrade files to include with your delivery.

    A table called dbix_class_schema_versions is created and maintained by the module. This contains two fields, 'Version' and 'Installed', which contain each VERSION of your Schema, and the date+time it was installed.

    The actual upgrade is called manually by calling upgrade on your schema object. Code is run at connect time to determine whether an upgrade is needed, if so, a warning "Versions out of sync" is produced.

    So you'll probably want to write a script which generates your DDLs and diffs and another which executes the upgrade.

    NB: At the moment, only SQLite and MySQL are supported. This is due to spotty behaviour in the SQL::Translator producers, please help us by them.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    DBIx::Class::Schema plugin | schema upgrade | Perl module | DBIx::Class::Schema | plugin | schema

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM