nd-dbic-versions - Create DB Schema Versions for Netdisco


This script creates SQL DDL files of the Netdisco database schema.

If called without any CLI options, it makes one SQL DDL file which will initialize the complete schema to the current DBIx::Class specification.

If called with the "-p <version>" option, upgrade SQL DDL command files are created between the specified version and the current DBIx::Class specification.


  1. Alter the DBIC DDL files as you wish.

  2. Increment the Schema's $VERSION number.

  3. Run this script with "-p $current_db_version".