+
Skip to content

[sea-orm-cli] migrate generate should take file name as argument instead of option #870

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

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

billy1624
Copy link
Member

@billy1624 billy1624 commented Jul 13, 2022

PR Info

Before:

$ cargo run -- migrate generate -h

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

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

OPTIONS:
    -d, --migration-dir <MIGRATION_DIR>      Migration script directory [default: ./migration]
    -h, --help                               Print help information
        --migration-name <MIGRATION_NAME>    Name of the new migration
    -v, --verbose                            Show debug messages

After:

$ cargo run -- 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 [default: ./migration]
    -h, --help                             Print help information
    -v, --verbose                          Show debug messages

Fixes

  • sea-orm-cli migrate generate should take file name as argument instead of option
    The change of behaviour is introduced in Bump clap version to 3.2 #706

@billy1624 billy1624 self-assigned this Jul 13, 2022
@billy1624 billy1624 requested a review from tyt2y3 July 13, 2022 08:51
@billy1624 billy1624 marked this pull request as ready for review July 13, 2022 08:51
@billy1624 billy1624 merged commit 60bf6da into master Jul 14, 2022
@billy1624 billy1624 deleted the cli-migrate-generate-arg branch July 14, 2022 09:43
tyt2y3 added a commit to SeaQL/seaql.github.io that referenced this pull request Jul 17, 2022
* Custom join condition (SeaQL/sea-orm#793)

* Migration does not depend on entity crate

* Define integer enum with repr[x] syntax

* Document datatype mappings (SeaQL/sea-orm#772)

* Cursor pagination (SeaQL/sea-orm#754, SeaQL/sea-orm#822)

* (de)serialize custom JSON types (SeaQL/sea-orm#794)

* Generate new migration file (SeaQL/sea-orm#656)

* Skip generating entity file for specific tables (SeaQL/sea-orm#837)

* Generate entity with date time crate option (SeaQL/sea-orm#724)

* Drop `SelectTwoMany::one()` method (SeaQL/sea-orm#813)

* Datatype mappings of primitives (SeaQL/sea-orm#850, SeaQL/sea-schema#75)

* Join with table alias (SeaQL/sea-orm#852)

* SQLx logging level (SeaQL/sea-orm#800)

* Insert with on conflict (SeaQL/sea-orm#791)

* Migrate generate should take file name as argument instead of option (SeaQL/sea-orm#870)

* Upgrade docusaurus to 2.0.0-beta.22

* What's new in SeaORM 0.9.0

* Move migration section forward

* Rename "Generating Database Schema" section to "Generating SeaQuery Statement"

* Fix broken links

* Edit

* Edit

* Edit

* Edit

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载