-
I have a class called
All CRUD operations work fine for this class. I have another class called
While docker was running:
This was the result:
I tried running the endpoint for posts table but it didn't work. How to solve this?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
From your log The issue is that there should be an |
Beta Was this translation helpful? Give feedback.
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 thendart 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…