Code Monkey home page Code Monkey logo

migrator.net's People

Contributors

benoitdion avatar geofflane avatar jamesfoster avatar nhemsley avatar yashikno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

migrator.net's Issues

SqlServer: Schema

Unexpected behavior when using schema.
For instance:
Assert.IsTrue(_provider.ColumnExists("dbo.TestTwo", "TestWithDefault"));
Will fail even if the column is present in the table.

Executing MSBuild task from inside of Visual Studio locks a DLL

If the .csproj is modified so that it calls Migrate task in the AfterBuild target the project DLL will stay locked after the first compile. The problem is that Assembly.LoadFrom locks the DLL and it can not be unloaded.

Solution for the problem is adding the attributes [LoadInSeparateAppDomain] and [Serializable] to the Migrator.MSBuild.Migrate class and inheriting from AppDomainIsolatedTask instead of the Task. TaskLogger has to be change accordingly.

[LoadInSeparateAppDomain]
[Serializable]
public class Migrate : AppDomainIsolatedTask 
{ 

 public class TaskLogger : ILogger
{
    private readonly AppDomainIsolatedTask _task;

    public TaskLogger(AppDomainIsolatedTask task)
           {
                   _task = task;
           }

Sorry for not using the GIT :(

Infinite loop when given non-existent version to migrate to

E.g. when we have just one migration and issue a command to migrate to version 2 on the command line:

Migrator.Console.exe SqlServer "Data Source=..." Database.dll -version 2

the application wil go forever:

2 <Migration not found>
2 <Migration not found>
2 <Migration not found>
2 <Migration not found>
2 <Migration not found>
2 <Migration not found>
...

Guid IDs not allowed

Hi,

When I try to create a table with a GUID type for the ID, I get an exception that GUIDs are not allowed. (This is with the SQL Server provider.)

I'm sure there's a reason for this. The problem is, I'm creating a JSON API, so I need GUIDs for everything -- I don't want to manage a pair of IDs (integer for the DB and GUID for everything else).

Is there a way around this? SQL Server itself allows GUID primary keys.

Edit: This error doesn't appear to be coming from Migrator.NET. It's because I specified PrimaryKeyWithIdentity. Changing it to PrimaryKey works.

Change IsolationLevel

Currently the BeginTransaction method in TransformationProvider always uses IsolationLevel.ReadCommitted to begin the transaction. In MySQL 5.1.66 if you are using InnoDB tables and Statement based replication the isolation level must be either IsolationLevel.RepeatableRead or IsolationLevel.Serializable.

Could the TransformationProvider be updated so that the isolation level was configurable via a property? Or as a argument to the BeginTransaction method?

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.