Skip to content

Issue adding foreign key #4

Open

Description

@sifthedog

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.

Activity

  1. christiaanwesterbeek commented on Mar 13, 2021

    @christiaanwesterbeek
    Member

    I haven't been updating this lib, but I am still using it in some of my projects with the knowledge that indeed there's no rollback. If you're willing to contribute, I can only be grateful. I will accept PR's, review, merge and publish a new version on npm in that case.

  2. christiaanwesterbeek commented on Mar 15, 2021

    @christiaanwesterbeek
    Member

    Thanks for your contribution. Merged #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions