-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating migrations not working in latest v2 #8782
Comments
Regression was pushed yesterday with "@payloadcms/db-postgres": "0.8.8" locking to 0.8.7 allows to create migrations |
It may be possible for you to clean up all your migrations and create a new one from the latest version |
Another note, if you have drizzle-orm / kit installed in your project you need to bump them, may be not related to this |
Yes but I would need to seed some sort of pre-migration migration to not have it run. Since it will create a new initial migration. Not great. |
You could "simulate" that it's ran by adding it to the payload_migratoons table manually, not ideal but may work |
Yeah that was my initial reaction too but I thought to ask here for a better fix perhaps |
I just spoke with @r1tsuu We're going to include a test for this and release the updated patch later today. Thanks for reporting this @max-degterev! |
Awesome, lmk when it's live I will test for you 👍 |
🚀 This is included in version v2.30.3 |
Works, thanks! |
Nice, thank you! My bad that I missed this important thing. |
This issue has been automatically locked. |
Link to reproduction
No response
Describe the Bug
Last version of v2 is incompatible with previous migrations:
To Reproduce
I am running agains a system with existing migrations. Initially the change in enum behavior has forced me to re-create my dev DB to start the project. Now I am unable to create migrations (same enum issue again). Any idea how to patch the old schema so the new system is able to diff it correctly?
Payload Version
current v2
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: