Code Monkey home page Code Monkey logo

db-migrate-mssql's Introduction

Build Status Dependency Status devDependency Status

db-migrate-mssql

mssql driver for node-db-migrate

I started this repo from a fork of https://github.com/db-migrate/pg . Took me about half a day to build it, and it's working. jpinkster added support for transactions which secures migration state which I merged in today (version 1.1.0).

There is another db-migrate-mssql package (https://github.com/ryd0rz/db-migrate-mssql) that existed before this one. It's published on npm as db-migrate-mssql. That is the also the one that node-db-migrate canonically uses when configuring driver: "mssql". I'm not sure of the quality of that package. At first it wasn't working but got fixed recently supposedly.

Installation

If you'd like to use this one as an alternative to the existing db-migrate-mssql, make sure to install it like this.

yarn add db-migrate-mssql@npm:@devotis/db-migrate-mssql

This installs a dependency by the name of db-migrate-mssql (as an alias) but with the source being @devotis/db-migrate-mssql. It looks like this in your package.json dependencies afterwards.

"db-migrate-mssql": "npm:@devotis/db-migrate-mssql",

Note: Don't do yarn add @devotis/db-migrate-mssql for now, and if you already did, remove the line "@devotis/db-migrate-mssql": "...", from your package.json. Once the requested feature is added to node-db-migrate allowing you to appoint another repo as the driver, you can install as yarn add @devotis/db-migrate-mssql, but don't use this quite yet.

db-migrate-mssql's People

Contributors

wzrdtales avatar christiaanwesterbeek avatar yangg avatar bill-kitsune avatar ianp avatar sifthedog avatar jpinkster avatar itssoso avatar worldspawn avatar miezzi avatar iworq avatar

Stargazers

Barry Owens avatar

Watchers

 avatar James Cloos avatar

db-migrate-mssql's Issues

Issue adding foreign key

Hi, I don't know if this lib is still under maintenance, but still...

Me and my teammates started using it and we were having ourselves a problem adding a new foreign key. With no error log or anything, the migration would never end.

After some debugging, we found out that the problem is with the query. It turns out it's actually generating something like this:

ALTER TABLE [dbo].[['dbo','Table']] ADD CONSTRAINT .............

Also, there is no rollback if something goes wrong. If you are still accepting new PRs, I can fix both issues for you.

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.