DBIx::C...owngrade(3)
π NAME π
DBIx::Class::Migration::Script::Help::downgrade β Downgrade your existing database
Okay bestie, this is the DBIx::C...owngrade(3) page from User Contributed Perl Documentation, and we are literally here to downgrade a database. It's giving rewinding the timeline but make it schema-safe. π°οΈβ¨
πΈ SYNOPSIS πΈ
dbic-migration downgrade --schema_class MyApp::Schema --to_version 2
This is the exact command vibe, no cap. Run it and let the downgrade files do their thing. π
π¦ DESCRIPTION π¦
So the whole point: run downgrade files to either bring the database into sync with the current schema version, or stop at an intermediate version specified via to_version. That's the tea. ββ¨
β¨ 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. Bestie, there are quite a few, but we are not skipping a single one. π«Ά
includes(I,lib,libs,include) β Optional. Adds the listed paths to@INC. Handy during development when you want to use a development schema class. Literally dev-mode convenience. π§to_versionβ aliases:V, Optional. This is the target version of the database we are installing. The version named must be have been previously prepared. If not specified, we will use the currentSchemaclass version. π―schema_class(S) β AcceptsStr. 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 exampleMyApp::Schema. If theschema_classcannot be loaded, a hard exception will be thrown. No soft landing, bestie. π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). Cute custom sandbox location moment. ποΈ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. Slay. ππ¬userβ Aliases:U. That's it, bestie. It's justuser. πpasswordβ Aliases:P. Same energy, justpassword. π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). So if you have a live DB, drop thedsn; if not, sandbox time. ποΈdbic_fixture_classβ Accepts: String to a Perl Class. Defaults toDBIx::Class::Fixtures. Lets you specify a fixture class. Fixture class = chosen, periodt. πdbic_fixtures_extra_argsβ Accepts:HashRef. Optional. Allows you to pass custom arguments toDBIx::Class::Fixtures. Extra args, extra power. πdbic_connect_attrsβ Accepts:HashRef, Optional. Lets you send custom attributes atconnecttime to eitherDBIx::Classor the underlying DBI and your storageDBD. Connect-time customization, iykyk. πdbi_connect_attrsβ Accepts:HashRef, Optional. Lets you send custom attributes atconnecttime to eitherDBIx::Classor the underlying DBI and your storageDBD. Same description, because the original lists them together under one description. π«Ά
π SEE ALSO π
DBIx::Class::MigrationDBIx::Class::Migration::ScriptDBIx::Class::Migration::FeaturesDBIx::Class::Migration::Tutorial
Go read these if you want the full lore. πβ¨
π AUTHOR π
See DBIx::Class::Migration for author information. Iconic of them to keep it centralized. π
π COPYRIGHT & LICENSE π
See DBIx::Class::Migration for copyright and license information. Legal bestie stuff, handled there. π«Ά
Bye bestie! π This page came from perl v5.42.0, dated 2020-06-03, and it's the DBIx::C...owngrade(3) manual β periodt. β¨
π¦ 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