Reinstate clean state

Hi,

In the process of adding a field, i've manually modified the schema .txt file, as well as tried adding a field through the UI.

I now want to reinstate the good state. I've got the raw stock_settings.txt file from github and deleted the added field from the settings. But the field still shows up on the stock_settings page on GUI. I guess it's picking it up from the database.

How to move the database to be in sync with what is in with github, basically undo my changes?

With Regards,
Shilpa.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.

Dear, Shilpa!

You can reset the state of you modifications using these commands in shell, above erpnext install folder:

git fetch origin master
git reset --hard origin
./lib/wnf.py --reinstall

The two first comands reset all files modifications
The third command reinstall erpnext, reseting your database.



2014-01-28 <sh...@gmail.com>
Hi,

In the process of adding a field, i've manually modified the schema .txt file, as well as tried adding a field through the UI.

I now want to reinstate the good state. I've got the raw stock_settings.txt file from github and deleted the added field from the settings. But the field still shows up on the stock_settings page on GUI. I guess it's picking it up from the database.


How to move the database to be in sync with what is in with github, basically undo my changes?

With Regards,
Shilpa.



Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.




--

Best Regards.

Maxwell Morais
Python Developer
+55 11 954329659




Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
Thanks Maxwell. This was helpful.

With Regards,
Shilpa.

On Wednesday, January 29, 2014 3:23:54 AM UTC+5:30, Maxwell wrote:

Dear, Shilpa!

You can reset the state of you modifications using these commands in shell, above erpnext install folder:

git fetch origin master
git reset --hard origin
./lib/wnf.py --reinstall

The two first comands reset all files modifications
The third command reinstall erpnext, reseting your database.



2014-01-28 <sh...@gmail.com>
Hi,

In the process of adding a field, i've manually modified the schema .txt file, as well as tried adding a field through the UI.

I now want to reinstate the good state. I've got the raw stock_settings.txt file from github and deleted the added field from the settings. But the field still shows up on the stock_settings page on GUI. I guess it's picking it up from the database.


How to move the database to be in sync with what is in with github, basically undo my changes?

With Regards,
Shilpa.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.




--

Best Regards.

Maxwell Morais
Python Developer
+55 11 954329659




Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.