Hello everyone,
I edited my custom app doctype name then pull code and migrate changes in production. All data of the old doctype are lost. The new doctype is empty table. Why this happed and how do i recover my data?
Thank you so much.
Hello everyone,
I edited my custom app doctype name then pull code and migrate changes in production. All data of the old doctype are lost. The new doctype is empty table. Why this happed and how do i recover my data?
Thank you so much.
You have to write the patch.
You made changes in local, but in production it is not known what you have change and it is think as new doctype.
In database there will be a table of your old doctype.
And good pratice for rename is this:
but now you have already rename best is write a patch. Your data is not lost, just it have different table name. And if you have child table in it, you have to take care of that also because in child table have reference of parent