DBIx::C...t::Help(3)
π
DBIx::Class::Migration::Script::Help(3) β aka the dbic-migration cheat sheet, bestie edition π
okay so this page is literally the handbook for DBIx::Class::Migration::Script::Help β it's the summary of all the commands, and honestly? iconic. it's giving "table of contents but make it cute." every command, every option, every flag is down below, no cap, nothing skipped β¨
πΈ NAME πΈ
DBIx::Class::Migration::Script::Help β the summary of the commands, periodt π
π¦ USAGE π¦
dbic-migration [options] Command
π COMMANDS π
so here's the rundown of everything that's available, bestie β read it and weep (with joy) π
π Informational Commands
helpβ the tl;dr of the commandline help πΈhelp [word]β the detailed help for[command]or[option], i.e. the deep dive you actually want πversionβ tells you which version ofDBIx::Class::Migrationyou're running rn βstatusβ the current database and schema version, your vibe check for the DB π¦
π₯ Preparing and using Migrations
prepareβ makes deployment files for yourschema_classβ¨installβ installs a version into the database βupgradeβ upgrades the database, we love a glow-up πdowngradeβ downgrades the database, going back, no shame π«Άinstall_if_neededβ installs the database if it's not installed already (if it is installed, it just... doesn't, lowkey efficient) πinstall_version_storageβ populates theDBIC:DHmetadata tables π
π§ Commands for working with Fixtures
dump_named_setsβ creates fixture sets for the named sets πdump_all_setsβ dumps all available fxture sets πpopulateβ deploys the current database from fixtures πΈ
π Utility Commands
drop_tablesβ drops all tables in the target database. CAREFUL! like, for real, be careful, this is the main character of destructive commands πdelete_table_rowsβ truncates all the tables (no data, keep structure) β empty out the data but leave the structure standing, bestie πmake_schemaβ reverse engineers your database intoDBIx::Classπdiagramβ creates an image schematic of your schema, so you can look at it, we love a visual π¨
β Command options
include/include/s(I,lib/s) β adds the listed paths to@INCschema_class(S) β theDBIx::Class::Schemasubclass you are migratingtarget_dir(D) β where to put (or find) your migration filessandbox_dirβ specify an alternative path for your database sandboxusername(U) β the username, the name says it all, no blurb provided πpassword(P) β the password, again, no blurb, it's literally just this πdsnβ connection info to the database you are migratingforce_overwrite(O) β allows overwriting of existing migration filesto_version(V) β use the given migration versiondatabase/database/sβ the type of database we are preparing migrations forfixture_set/fixture_set/sβ controls the fixture sets used for dumping or populatingsandbox_class(T) β makes any ofSqliteSandbox,MySQLSandbox,PostgresqlSandboxdbic_fixture_classβ names an alternative subclass ofDBIx::Class::Fixturesdbic_connect_attrsβ passes custom args toDBIx::Class::Schema->connectdbi_connect_attrsβ passes custom args to DBI viaDBIx::Class::Schema->connectextra_schemaloader_argsβ passes custom args toDBIx::Class::Migration::SchemaLoaderdbic_fixtures_extra_argsβ passes custom args toDBIx::Class::Fixtures
β¨ EXAMPLE β¨
here's one to screenshot and keep, bestie π«Ά
dbic-migration status \
--libs="lib" \
--schema_class='MyApp::Schema' \
--dsn='DBI:SQLite:myapp.db'
π SEE ALSO π
go off, read these next:
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 π
and that's the whole page, bestie β perl v5.42.0, dated 2020-06-03, so this manual page is a lil vintage but she still ate π
β¨ bye 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