Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conflicting short flag -u when executing migrate generate command #1157

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

billy1624
Copy link
Member

@billy1624 billy1624 commented Oct 26, 2022

Fixes

  • Fix conflicting short flag -u when executing migrate generate command

Before the fix:

➜ sea-orm-cli migrate generate -h
sea-orm-cli-migrate-generate
Generate a new, empty migration

USAGE:
    sea-orm-cli migrate generate [OPTIONS] <MIGRATION_NAME>

ARGS:
    <MIGRATION_NAME>    Name of the new migration

OPTIONS:
    -d, --migration-dir <MIGRATION_DIR>
            Migration script directory.
            If your migrations are in their own crate,
            you can provide the root of that crate.
            If your migrations are in a submodule of your app,
            you should provide the directory of that submodule. [default: ./migration]

    -h, --help
            Print help information

    -s, --database-schema <DATABASE_SCHEMA>
            Database schema
             - For MySQL and SQLite, this argument is ignored.
             - For PostgreSQL, this argument is optional with default value 'public'.
            [env: DATABASE_SCHEMA=]

    -u, --universal-time
            Generate migration file based on Utc time instead of Local time

    -u, --database-url <DATABASE_URL>
            Database URL [env: DATABASE_URL=]

    -v, --verbose
            Show debug messages

After the fix:

➜ sea-orm-cli migrate generate -h
sea-orm-cli-migrate-generate
Generate a new, empty migration

USAGE:
    sea-orm-cli migrate generate [OPTIONS] <MIGRATION_NAME>

ARGS:
    <MIGRATION_NAME>    Name of the new migration

OPTIONS:
    -d, --migration-dir <MIGRATION_DIR>
            Migration script directory.
            If your migrations are in their own crate,
            you can provide the root of that crate.
            If your migrations are in a submodule of your app,
            you should provide the directory of that submodule. [default: ./migration]

    -h, --help
            Print help information

    -s, --database-schema <DATABASE_SCHEMA>
            Database schema
             - For MySQL and SQLite, this argument is ignored.
             - For PostgreSQL, this argument is optional with default value 'public'.
            [env: DATABASE_SCHEMA=]

    -u, --database-url <DATABASE_URL>
            Database URL [env: DATABASE_URL=]

        --universal-time
            Generate migration file based on Utc time instead of Local time

    -v, --verbose
            Show debug messages

@billy1624 billy1624 self-assigned this Oct 26, 2022
billy1624 added a commit to SeaQL/seaql.github.io that referenced this pull request Oct 26, 2022
@billy1624 billy1624 marked this pull request as ready for review October 26, 2022 10:20
@billy1624 billy1624 merged commit 9108e74 into master Oct 26, 2022
@billy1624 billy1624 deleted the cli-migrate-generate-conflicting-short-flag branch October 26, 2022 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant