Skip to content

Bug: duplicate loading ? #118

@euri10

Description

@euri10

Description

one single migration file leads to this:

❯ sqlspec --config availify.main_sqlspec.main upgrade
Starting database upgrade process ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Are you sure you want migrate the database to the `head` revision? [y/n]: y
Found 1 pending migrations
INFO - 2025-10-10 16:26:32,518 - sqlspec.loader - loaders - Loading SQL files
INFO - 2025-10-10 16:26:32,519 - sqlspec.loader - loaders - Loaded 1 SQL files with 2 new queries in 0.883ms
INFO - 2025-10-10 16:26:32,519 - sqlspec.loader - thread - Loading SQL files
INFO - 2025-10-10 16:26:32,522 - sqlspec.loader - thread - Loaded 1 SQL files with 2 new queries in 2.596ms

Applying 0001: users
INFO - 2025-10-10 16:26:32,522 - sqlspec.loader - loaders - Loading SQL files
INFO - 2025-10-10 16:26:32,522 - sqlspec.loader - loaders - Loaded 1 SQL files with 2 new queries in 0.216ms
✓ Applied in 12ms

URL to code causing the issue

No response

MCVE

# Your MCVE code here

Steps to reproduce

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Screenshots

"In the format of: ![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"

Logs

Package Version

0.26.0

Platform

  • Linux
  • Mac
  • Windows
  • Other (Please specify in the description above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions