Replies: 2 comments 3 replies
-
You can import the cuid package manually into the migration and generate them that way: https://github.com/paralleldrive/cuid Create an empty migration and write the code that splits the table there, whenever you need a new cuid just call the |
Beta Was this translation helpful? Give feedback.
3 replies
-
@villesau Its probably too late! but I was able to do this from MySQL migrations. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to generate new records in the migration. However the migration files are SQL files, and the CUID seems to be generated by Prisma client I'm not able to find a way to use CUID. How can this be achieved? The idea is to split one table in two tables and I would not want to reuse the ids.
Beta Was this translation helpful? Give feedback.
All reactions