engagelabsit / socautolinkdatabasesworkingfolder Goto Github PK
View Code? Open in Web Editor NEWRed Gate SQL Source Control (4 or later) working folder automated link
License: MIT License
Red Gate SQL Source Control (4 or later) working folder automated link
License: MIT License
With Redgate SQL Source Control you can link your databases to VSTS/TFS directly (http link). This kind of approach is not supported with this tool so it'd be good to set up this one.
Change the following code in order to support the dynamic path configuration
# RedGate - hard-coded to version 6, change it if you have another version.
$socPath = $env:LOCALAPPDATA + "\Red Gate\SQL Source Control 6\"
$SQLComparePath = Join-Path $CurrentFolder -ChildPath "Dependencies"
$SQLDataComparePath = Join-Path $CurrentFolder -ChildPath "Dependencies"
$SqlToolbeltLicenseSerialNumber = ""
$hooksPath = Join-Path $socPath "ReservedCommandLineHooks\$sourceControlName.xml"
$xmlConfigurationsFilePath = Join-Path $socPath LinkedDatabases.xml
With the current version is not possible to manage more than one database. The tool manages ONE database or ALL databases. Change this behavior in "multi selected" database scenario.
Load the database list from an external call (API? JSON file?) instead of the current hard-coded implementation. This allows the tool to get the list of databases to manage dynamically.
#database scope settings (list of custom database "scope", scope is the "meaning" of the database and it needs the branch name for being a complete name)
$DB1Scope = 'DB1'
$DB2Scope = 'DB2'
$DB3Scope = 'DB3'
#database scripts (you can change the names of each script, and also the text within them)
$DB1CreationScript = '01 - Create database DB1.sql'
$DB2CreationScript = '02 - Create database DB2.sql'
$DB3CreationScript = '03 - Create database DB3.sql'
#endregion
#region WORKING VARIABLES
# list of needed database (specify the position = specify the sorting of scripts execution, if you need any)
$DB1Name = $DB1Scope+"_"+$BranchSuffix
$DB2Name = $DB2Scope+"_"+$BranchSuffix
$DB3Name = $DB3Scope+"_"+$BranchSuffix
$databases = (
($DB1Scope, $DB1Name, $DB1CreationScript, 1),
($DB2Scope, $DB2Name, $DB2CreationScript, 2),
($DB3Scope, $DB3Name, $DB3CreationScript, 3)
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.