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

feat: add skip and force accept flags to migration commands #8843

Merged
merged 10 commits into from
Nov 22, 2024

Conversation

JessChowdhury
Copy link
Member

@JessChowdhury JessChowdhury commented Oct 23, 2024

  1. Adds flag --skip-empty to migrate:create to bypass the empty migration file prompt.
    • Blank migration file will not be created if this flag is passed.
  2. Adds flag --force-accept-warning to migrate:fresh to bypass the drop database prompt

packages/db-mongodb/src/createMigration.ts Outdated Show resolved Hide resolved
packages/payload/src/bin/migrate.ts Outdated Show resolved Hide resolved
@denolfe
Copy link
Member

denolfe commented Oct 29, 2024

Latest iteration seems to have broken the migration commands. Any migration command gives No migration command provided. Tested on canary 3.0.0-canary.3eda767.

@denolfe denolfe removed the v3 label Nov 19, 2024
@denolfe denolfe added this to the v3.1 milestone Nov 19, 2024
@denolfe denolfe merged commit fb3242d into main Nov 22, 2024
52 checks passed
@denolfe denolfe deleted the chore/migration-flags branch November 22, 2024 15:37
Copy link
Contributor

🚀 This is included in version v3.1.0

Copy link

@Fluck15 Fluck15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants