USAGE:(1)
okay bestie, sit down, hydrate, because we're reading the manual page for usage: β yes the name literally has a colon in it, iconic, no notes π
β aka the database schema migration tool we all know and love. she handles your migrations, she's got nine little subcommands, and she's about to make your schema behave. let's go π¦β¨
πΈ NAME πΈ
usage: β Database schema migration tool π
β¨ DESCRIPTION β¨
so the vibe is: you type yoyo and then some stuff, and it does migration things. here's the full shape of it, exactly how it shows up:
usage: yoyo [-h] [--config CONFIG] [-v] [-b] [--no-config-file]
{init,apply,develop,list,rollback,reapply,mark,unmark,break-lock,new}
...
that's the whole menu, bestie. below it the page breaks everything into positional arguments and options, so let's take them one at a time π«Ά
π positional arguments π
the group itself is described on the page as Commands help, and these are your choices:
{init,apply,develop,list,rollback,reapply,mark,unmark,break-lock,new}
initβ spins up a brand new project for you β¨applyβ applies your migrations, that's it, that's the job πdevelopβ applies migrations and does not prompt you at all. and if there's literally nothing unapplied sitting around? it reapplies the last migration instead. she's proactive like that πlistβ shows you every migration, available and applied both. each line gets a little prefix so you can tell them apart:Ameans applied,Umeans unapplied πrollbackβ rolls your migrations back, rewinding the timeline βͺreapplyβ rolls back and then reapplies. a full little glow-up cycle π¦markβ marks migrations as applied without actually running them. sneaky. we love her πunmarkβ the opposite: unmarks applied migrations without rolling them back πbreak-lockβ breaks migration locks, for when something got stuck holding the door πnewβ creates a new migration, fresh out the box β
π options π
-h,--helpβ shows this help message and exits. the classic escape hatch π«Ά--config,-c CONFIGβ tells her where the config file lives π-vβ verbose output! and you can stack it β use it multiple times to crank the verbosity level up and up and up π₯-b,--batchβ batch mode. this turns off every single user prompt, so she just goes π--no-config-file,--no-cacheβ don't go looking for ayoyo.iniconfig file π«
ok so real talk: the page then repeats the entire positional arguments block and the entire options block, word for word. not a typo on my end, bestie, that's literally what's printed. so here it is again, because we keep every detail π
π positional arguments (yes, again) π
{init,apply,develop,list,rollback,reapply,mark,unmark,break-lock,new}
described on the page as Commands help.
initβ Initialize a new project β¨applyβ Apply migrations πdevelopβ Apply migrations without prompting. If there are no unapplied migrations, reapply the last migration πlistβ List all available and applied migrations. Each listed migration is prefixed with eitherA(applied) orU(unapplied) πrollbackβ Rollback migrations βͺreapplyβ Rollback then reapply migrations π¦markβ Mark migrations as applied, without running them πunmarkβ Unmark applied migrations, without rolling them back πbreak-lockβ Break migration locks πnewβ Create a new migration β
π options (yes, again) π
-h,--helpβ show this help message and exit π«Ά--config,-c CONFIGβ Path to config file π-vβ Verbose output. Use multiple times to increase level of verbosity π₯-b,--batchβ Run in batch mode. Turns off all user prompts π--no-config-file,--no-cacheβ Don't look for ayoyo.iniconfig file π«
and that's the whole page, bestie, we read all of it, nothing skipped, we ate π
one last thing before you go β the footer on this one reads usage: yoyo [-h] [--config CONFI... with the date May 2025, so that's your version-ish line and your timestamp, right at the bottom where footers live. go migrate something gorgeous πΈβ¨π¦
π¦ where this page comes from
- debian trixie: python3-yoyo 9.0.0+dfsg1-3 Β· Apache-2.0
- ubuntu resolute: python3-yoyo 9.0.0+dfsg1-3 Β· Apache-2.0
- ubuntu stonking: python3-yoyo 9.0.0+dfsg1-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms