Skip to content

The database does not match the target database: Table is missing #1886

Answered by Isakdl
Sameer330 asked this question in Q&A
Discussion options

You must be logged in to vote

I see, the migration command requires the latest applied migration to be in the folder. The error Exception: Version 20240206171738894 not found in project. cannot find the version that was last applied in the database. You have a few options to fix this. If you have the history in git you can bring back this version and create a new migration based on that migration. You can also use the repair migration feature, i.e. serverpod create-repair-migration and then dart bin/main.dart --apply-repair-migration. This will create a special migration that will bring everything in sync.

Or lastly you can also just wipe the database (if you don't care about the data) and apply the migration on a cle…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Sameer330
Comment options

@Isakdl
Comment options

Answer selected by Sameer330
@Sameer330
Comment options

@Sameer330
Comment options

@Sameer330
Comment options

@kaljitism
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants