Git Product home page Git Product logo

socautolinkdatabasesworkingfolder's People

Contributors

fabiozanella avatar micdenny avatar suxstellino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

socautolinkdatabasesworkingfolder's Issues

Support for direct link on VSTS/TFS

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.

Make the paths configurable

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

Make the array of databases dynamic (configurable) via external call

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)
    )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.