Can I ignore RedGateDatabaseInfo.xml in source control?

Compares and synchronizes SQL Server databases, backups and scripts.

Moderators: JonathanWatts, Chris Auckland, David Atkinson, eddie davis, Anu Deshpande, Michelle Taylor, alice.easey, james.billings, chengvoon.tong

Can I ignore RedGateDatabaseInfo.xml in source control?

Postby Christian Specht » Fri Mar 15, 2013 10:07 am

I don't need this file and I don't mind it being there, but it clutters up our source control history.
Nearly every time we change something in the database, there are changes like this in RedGateDatabaseInfo.xml:

From:
<None />

to:
<None>
</None>


Or from:
<DatabaseInformation>

to:
<DatabaseInformation Version="2">


So: do we even need to commit this file at all? I would prefer to delete it from the repository and ignore it in the future.

Thank you!
Christian Specht
 
Posts: 1
Joined: Fri Mar 15, 2013 9:44 am

Postby Brian Donahue » Mon Mar 18, 2013 4:51 pm

I don't think it would be a good idea to try to remove this file. In addition to storing any information about static table data you've linked, it states the format of the subdirectories where scripts for types of SQL objects are kept, database collations, versioning, and other things that would affect how the comparisons between live databases and source controlled scripts are done.

At any rate I believe if you tried to delete it, SQL Source Control would re-create it on the next get latest/commit changes. It's part of the metadata needed so SQL Source Control and SQL Compare can function correctly.

I don't think there will be many more changes in the information in this file, so hopefully you won't notice it very much in the future.
Brian Donahue
 
Posts: 6669
Joined: Mon Aug 23, 2004 10:48 am


Return to SQL Compare 10

Who is online

Users browsing this forum: No registered users and 0 guests