Skip to content

Fixing an issue with --import and dataDir at the same time - #8048

Merged
joehan merged 1 commit into
masterfrom
jh-fix-import1
Dec 9, 2024
Merged

joehan merged 1 commit into
masterfrom
jh-fix-import1

Conversation

@joehan

@joehan joehan commented Dec 9, 2024

Copy link
Copy Markdown
Member

Description

When 'dataDir' and --import are used at the same time, the emulator would fail with 'Database already exists'. Now, we warn that data will be overwritten, prompt if we're in interactive mode, and then overwrite the dataDir.

Scenarios Tested

Manually tested the following cases and verified that they work as expected:

  • Interactive, both are set, accept prompt
  • Interactive, both are set, decline prompt
  • Noninteractive, both are set
  • Only --import is set
  • Only dataDir is set

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants