Dropped objects just disappear

Early Access Program for SQL Source Control

Moderators: Chris Auckland, David Atkinson, sherr

Dropped objects just disappear

Postby fatherjack » Wed Jan 27, 2010 2:59 pm

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
fatherjack
 
Posts: 224
Joined: Tue Mar 13, 2007 12:33 pm
Location: Cornwall

Postby ceacl » Mon Feb 01, 2010 4:59 pm

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.
ceacl
 
Posts: 12
Joined: Wed Jun 03, 2009 11:38 pm

Postby fatherjack » Tue Feb 02, 2010 9:52 am

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
fatherjack
 
Posts: 224
Joined: Tue Mar 13, 2007 12:33 pm
Location: Cornwall


Return to SQL Source Control EAP

Who is online

Users browsing this forum: No registered users and 0 guests