DBIx::C...:upgrade(3)
π NAME π
Hiii bestie π this is the DBIx::C...:upgrade(3) page from User Contributed Perl Documentation, and itβs here to help with DBIx::Class::Migration::Script::Help::upgrade β aka the thing that helps you Upgrade your existing database. Slay.
β¨ SYNOPSIS β¨
Like, run this, okay? π
dbic-migration upgrade --schema_class MyApp::Schema --to_version 2
π« DESCRIPTION π«
Okay so upgrade runs upgrade files to either bring your database into sync with the current schema version, or stop at an intermediate version that you specify via to_version. Thatβs the whole vibe: sync all the way, or take a lilβ pit stop at the version you named. No cap. π
πΈ OPTIONS πΈ
This command accepts the following options. You may learn more about each option by typing dbic-migration help OPTION. The following is a summary. Periodt.
includes(I,lib,libs,include) β Optional. Adds the listed paths to@INC. Handy during development when you want to use a development schema class. π οΈto_versionβ aliases:V. Optional. This is the target version of the database we are installing. The version named must have been previously prepared. If not specified, we will use the currentSchemaclass version. π―schema_class(S) β Accepts Str. Required. This is the schema we use as the basis for creating, managing and running your deployments. This should be the full package namespace defining your subclass ofDBIx::Class::Schema. For example,MyApp::Schema. If theschema_classcannot be loaded, a hard exception will be thrown. π Not a vibe β itβs literally a hard exception.target_dir(D) β Optional. When using asandbox_classfor generating developer level database sandboxes, you may wish to place the sandbox in a directory other than the default (which is under thesharedirectory off the project root). πsandbox_classβ Aliases:T,sb. Accepts: String (default:SqliteSandbox). The class we use to create a developer level database sandbox. You can change this to either'PostgresqlSandbox'or'MySQLSandbox', which will create a sandbox using eitherDBIx::Class::Migration::MySQLSandboxorDBIx::Class::Migration::PostgresqlSandbox. ποΈuserβ Aliases:U. π«Άpasswordβ Aliases:P. πdsnβ Connection information to an already created and running instance of a database. If you donβt specify this, we will assume you want a developer level sandbox (Seesandbox_classinDBIx::Class::Migration::Script). πdbic_fixture_classβ Accepts: String to a Perl Class. Defaults toDBIx::Class::Fixtures. Lets you specify a fixture class. π§Έdbic_fixtures_extra_argsβ Accepts: HashRef. Optional. Allows you to pass custom arguments toDBIx::Class::Fixtures. ποΈdbic_connect_attrsβ Accepts: HashRef, Optional. Lets you send custom attributes atconnecttime to eitherDBIx::Classor the underlyingDBIand your storageDBD. π«Άdbi_connect_attrsβ Accepts: HashRef, Optional. Lets you send custom attributes atconnecttime to eitherDBIx::Classor the underlyingDBIand your storageDBD. π«Ά
π SEE ALSO π
Okay bestie, go peek at these iconic pages:
DBIx::Class::MigrationDBIx::Class::Migration::ScriptDBIx::Class::Migration::FeaturesDBIx::Class::Migration::Tutorial
π AUTHOR π
See DBIx::Class::Migration for author information. π
π COPYRIGHT & LICENSE π
See DBIx::Class::Migration for copyright and license information. π
π
β¨ Thatβs the whole page, bestie β perl v5.42.0, dated 2020-06-03, and itβs the DBIx::C...:upgrade(3) manual page. Mwah! π
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class-Migration 0.075-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms