Skip to content

Empty migration folder crashes create-migration command. #1512

Closed

Description

@SandPod

Describe the bug
If the latest migration is an empty folder then the create-migration command crashes.

To Reproduce

  1. Create a new migration
  2. Remove all files in the migration
  3. Try to create another migration

Expected behavior
CLI shouldn't crash. Either the empty migration should either be ignored or an appropriate warning is displayed.

Screenshots
Screenshot 2023-11-01 at 13 05 37

Activity

  1. added
    bug
    on Nov 1, 2023
  2. moved this to Version 1.2 - Essentials 🔥 in Serverpod Frameworkson Nov 1, 2023
  3. self-assigned this
    on Nov 2, 2023
  4. moved this from Version 1.2 - Essentials 🔥 to Done 🚀 in Serverpod Frameworkson Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions