mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-12 00:29:48 +00:00
Add alias 'mig' for migration
This commit is contained in:
parent
cbac531a63
commit
19f086cc23
@ -24,13 +24,14 @@ const MIGRATION_FOLDER: &'static str = "migrations";
|
||||
#[derive(StructOpt, Debug)]
|
||||
#[structopt(name = "Sqlx")]
|
||||
enum Opt {
|
||||
#[structopt(alias = "mig")]
|
||||
Migrate(MigrationCommand),
|
||||
|
||||
#[structopt(alias = "db")]
|
||||
Database(DatabaseCommand),
|
||||
}
|
||||
|
||||
/// Adds and runs migrations
|
||||
/// Adds and runs migrations. Alias: mig
|
||||
#[derive(StructOpt, Debug)]
|
||||
#[structopt(name = "Sqlx migrator")]
|
||||
enum MigrationCommand {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user