-
Notifications
You must be signed in to change notification settings - Fork 34
Description
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.