Coder Social home page Coder Social logo

tsqlmigrations's Introduction

Project Description

Yet another migrations platform right? This is purely sql based (tsql as it is only for Sql Server at this time). This tool is meant to help manage versioning a database schema including scripting out objects/test data, managing change scripts, and backups/restores etc.

Feature List

  • Script out individual objects into their own folders (views/procedures/tables etc)
    • Baseline an existing database that is not under version control
  • Create update scripts in an Updates folder
  • Create a brand new instance of a scripted database by simply providing a new database name!
    • The script out creates an entire schema in order of dependencies to create new instances on the fly.
  • Script out test data sets by passing a list of table names, the dependencies will be walked between tables and drop statements will be created along with the inserts.
    • This is great to setup integration test environments
  • Apply update scripts automatically
    • Command line tool applies update scripts by checking the databases current version.
    • These are applied with transactions so if a failure occurs it will rollback the update.
    • Scripts are numbered Major.Minor.Point.Whatever.sql and allow for text after the point number
    • Updates are timestamped when applied and kept in a table called SchemaChanges (this will be configurable in the future)
  • Backup / restore local databases to disk
    • This is great for quickly dumping your instance to disk and giving it to another developer to use (for testing/debugging or just to get them started)
  • Run arbitrary scripts on a database (lookup or other test data sets you may have)
  • Fully automated via CLI
    • Great way to use the tool is to create a set of batch files for typical scenarios (like the ones listed above), and version them in your repository so other users can quickly run commands like"
    • Update Northwind
    • Create New NorthwindIntegartionTests
    • Backup Northwind
    • Backup then Update Northwind
    • Restore Northwind
    • Script out Northwind lookup data
    • Script out Northwind

More features to come in the future, including possible integration with Open DBDiff or the spin off Sql-DBDiff.

History

This was migrated from http://tsqlmigrations.codeplex.com/

tsqlmigrations's People

Watchers

 avatar  avatar  avatar

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.