Red Gate forums :: View topic - Dropped objects just disappear
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Source Control EAP
SQL Source Control EAP forum

Dropped objects just disappear

Search in SQL Source Control EAP forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
fatherjack



Joined: 13 Mar 2007
Posts: 224
Location: Cornwall

PostPosted: Wed Jan 27, 2010 2:59 pm    Post subject: Dropped objects just disappear Reply with quote

I may be misunderstanding things here but when I drop a table in the database I would have expected the source control to keep what the table definition was as version x -1 and version x as an empty description.

It appears to simply delete the items in the repository, is that right and / or what people want it to do?
_________________
-----------------------------------------
Senior DBA
Careers South West Ltd
Back to top
View user's profile Send private message
ceacl



Joined: 03 Jun 2009
Posts: 12

PostPosted: Mon Feb 01, 2010 4:59 pm    Post subject: Reply with quote

Think of your repository as a snapshot of your system at any given time. Like a timeline. When you drop an object and commit that drop to the repository your HEAD (latest) revision will not contain that object definition and therefore represents the current state of your system.

If you want to travel back in time to before the object was dropped you can certainly do that in any number of ways. My preferred choice is to use TortoiseSVN to either browse to a previous revision in the repository or browse to the object in question using TortoiseSVN browser and do a Show Log. This method shows a complete history of changes made to that object.

Anything that gets committed to your repository is there forever. There is no way to delete it from the repository short of deleting the entire repository. You may not see the object definitions you deleted if you're looking at the HEAD revision but you can see it if you go back in time to a prior revision.

Hope that helps.
Back to top
View user's profile Send private message
fatherjack



Joined: 13 Mar 2007
Posts: 224
Location: Cornwall

PostPosted: Tue Feb 02, 2010 9:52 am    Post subject: Reply with quote

Ah, I see. Thanks for that. I was looking via TortoiseSVN, thats where I was surprised to see that the file had gone.

Thanks
_________________
-----------------------------------------
Senior DBA
Careers South West Ltd
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group