Skip to content

devrative sync issues with makeDirectory #5722

Description

@HocheAdvisory

Affected area

Migrations

Supabase CLI version

2.108

Operating system

Windows 11

Installation method

npm

Command

supabase db schema declarative sync

Actual output

NotFound: FileSystem.readFile (C:\Users\[USER]\.supabase\profile)
Generated migration SQL:
REDACTED
│
◇  Enter a name for this migration (press Enter to keep 'declarative_sync'): 
│
AlreadyExists: FileSystem.makeDirectory (C:\Users\[USER]\OneDrive\<projectpath>\supabase\migrations)

Expected behavior

The migrations directory already exists, so directory creation should be a
no-op and the migration file should be written into it

Steps to reproduce

  1. On 2.108.0, in a linked project that already has a supabase/migrations/ dir
  2. Run supabase db schema declarative sync (with --debug)
  3. Enter a migration name at the prompt (or press Enter for the default)
  4. Command aborts with the makeDirectory error below

Crash report ID

No response

Docker and service versions

Additional context

above command was working in 107 version issues appears when upgrading to 108. Downgrading back to 107 fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions