Answered by:
upgrade list instance in sharepoint 2010?

Question
-
0
I have created list definition with two list instances now i want to add two new columns in list instance 1 and 2 , but when i redeploy my solution through visual studio older versions of list instances are deleted and newer versions are created and i lose my old data.
is there any way that i can upgrade list instances without losing the old data?
thanks,
Gaurav
Tuesday, June 19, 2012 6:15 AM
Answers
-
you can not update list instances by creating new instance. suggested way would be to create a feature reciever and add new columns to existing lists using object model
you can also write a simple console application to achieve the same.
Best Regards, Ashutosh | SharePoint World
- Proposed as answer by Akhilesh Nirapure Tuesday, June 19, 2012 5:50 PM
- Marked as answer by star.wars Thursday, June 28, 2012 9:28 AM
Tuesday, June 19, 2012 6:23 AM -
Ashutosh is correct. To add to his response, if you're using the feature upgrading/versioning capabilities of 2010, you could also customize your solution to provide the necessary upgrade steps depending on the version of the feature installed.
Chris has a great post about this...
http://www.sharepointnutsandbolts.com/2010/06/feature-upgrade-part-1-fundamentals.html
- Marked as answer by star.wars Thursday, June 28, 2012 9:28 AM
Tuesday, June 19, 2012 12:50 PM
All replies
-
you can not update list instances by creating new instance. suggested way would be to create a feature reciever and add new columns to existing lists using object model
you can also write a simple console application to achieve the same.
Best Regards, Ashutosh | SharePoint World
- Proposed as answer by Akhilesh Nirapure Tuesday, June 19, 2012 5:50 PM
- Marked as answer by star.wars Thursday, June 28, 2012 9:28 AM
Tuesday, June 19, 2012 6:23 AM -
Ashutosh is correct. To add to his response, if you're using the feature upgrading/versioning capabilities of 2010, you could also customize your solution to provide the necessary upgrade steps depending on the version of the feature installed.
Chris has a great post about this...
http://www.sharepointnutsandbolts.com/2010/06/feature-upgrade-part-1-fundamentals.html
- Marked as answer by star.wars Thursday, June 28, 2012 9:28 AM
Tuesday, June 19, 2012 12:50 PM