CLI migrate ignores additional migrations #1110

Closed
opened 2026-03-13 08:23:03 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @frankhale on GitHub (Apr 25, 2025).

I've used the CLI to create an initial set of tables and also a couple other migrations to make alterations to those tables. What I'm seeing is that CLI migrate will only migrate the initial set of tables and then ignore any subsequent migrations.

Image

After CLI migrate, the initial set of tables are created. My subsequent migrations are ignored and CLI migrate says:

INFO [Better Auth]: 🚀 No migrations needed.

How do you get CLI migrate to run your additional migrations?

Originally created by @frankhale on GitHub (Apr 25, 2025). I've used the CLI to create an initial set of tables and also a couple other migrations to make alterations to those tables. What I'm seeing is that CLI migrate will only migrate the initial set of tables and then ignore any subsequent migrations. ![Image](https://github.com/user-attachments/assets/d1ab7153-632f-4d01-a6b0-f7d3256a5d65) After CLI migrate, the initial set of tables are created. My subsequent migrations are ignored and CLI migrate says: INFO [Better Auth]: 🚀 No migrations needed. How do you get CLI migrate to run your additional migrations?
Author
Owner

@frankhale commented on GitHub (Apr 25, 2025):

Looks like this is a rabbit hole that I went down not understanding the purpose of the CLI migrate.

Image
@frankhale commented on GitHub (Apr 25, 2025): Looks like this is a rabbit hole that I went down not understanding the purpose of the CLI migrate. <img width="819" alt="Image" src="https://github.com/user-attachments/assets/3e2fab16-1ec3-4794-9e6f-9c78ffd294b9" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#1110