Skip to content

Support for powershell script files #19

@cquillen

Description

@cquillen

Sometimes you need to do migration tasks that are really hard to do in SQL.

I started out thinking I would write a totally new tool that would work like AliaSQL, but uses powershell scripts instead of SQL. But then I decided that would be silly and I should just add powershell support to the existing tool instead.

End result is the folders would contain a mixture of both .sql and .ps1 files

For my particular use case of this is I need to make a lot of Active Directory queries to populate some newly added db columns. I know you can technically do AD stuff with pure SQL, but it's not the friendliest. I don't have permissions to get the linked servers and other configuration stuff to make it work regardless. And Corp isn't keen on giving it to us either.

So I wrote up my migration as a console app, but now I have to manually execute it after AliaSQL. This totally messes with my one click deploy zen. Plus I have to write instructions to IT to perform the new step, etc. It'd be super handy if AliaSQL would just execute it for me like any other migration.

Would you guys accept such a pull request? Assuming the quality it there of course. I'm asking about the idea in general.

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