NAME

cpantesters-schema - Install, upgrade and examine the CPAN Testers database schema

VERSION

version 0.025

SYNOPSIS

    # prepare a new upgrade script
    cpantesters-schema prepare --preversion <version>

    # install a new database
    cpantesters-schema install

    # install a database to the given DSN
    cpantesters-schema install dbi:SQLite:local.db

    # upgrade an existing database
    cpantesters-schema upgrade

    # check what version our database is running
    cpantesters-schema check

    # fetch data from the CPAN Testers API to populate our database
    cpantesters-schema fetch report --dist Yancy@1.023

DESCRIPTION

This script works with DBIx::Class::Schema::Versioned to prepare a new database upgrade script, install the database, upgrade the database, or check the database version and available upgrades.

ARGUMENTS

<command>

The command to run. One of check, install, upgrade, prepare.

check will show the current database version and the list of potential versions. install will install a new database from scratch or prepare an existing database to be upgraded. upgrade will upgrade the current database. prepare is run during development to prepare a new upgrade script.

OPTIONS

--preversion

The previous version. Used by the prepare command to determine which upgrade script to make.

SEE ALSO

DBIx::Class::Schema::Versioned

AUTHORS

  • Oriol Soriano <oriolsoriano@gmail.com>

  • Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Oriol Soriano, Doug Bell.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.